Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I was wondering if there's any way to configure my apache2 server to redirect rather than deliver specific page. Basically, i have movabletype installed on my webserver, but its a pain in the ass to type http://www.mydomain.org/cgi-bin/mt.cgi every time i want to make a new entry. While I could make a file like /login.html, i'd still rather not have to have the .html part. So, is there any way to configure apache to recognize a url (ie /login) and redirect it somewhere?
Thanks stickman! I have recently been thinking of a better way to do something I've been doing with Alias, rewrite is by far the way to go (for me), I had totally forgotten about that option.
thanks! I did it with alias, because it seemed that this mod_rewrite didn't show up when i type apachectl -l, so it might have taken more work to set up.
What are the advantages of using rewrite, and what makes it different from alias?
Once of the things that I like about mod_rewrite is that you can turn this:
http://server/cgi-bin/script.cgi?var1=value1&var2=value2&var3=value3
into this:
http://server/value1/value2/value3
Just imagine:
http://server/cgi-bin/script.cgi?dept=accounting&name=john_doe
can be shortened to:
http://server/accounting/john_doe
mod_rewrite has quite a few features to rewrite URLs based on multiple conditions such as referrer, browser, etc.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.