Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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 have checked and double checked the .htaccess and httpd.conf to make sure everything is correct and I'm sure it is. I have AllowOverride set to All in the httpd.conf, Apache sees and is reading the .htaccess because I get a 500 Error when I put garbage text in the file. I'm lost now.
work as expected.
If they don't work for you, check if you set AllowOverride to none inside a vhost or something like that.
You can also enable RewriteLog and see what happens with the rules that are not working
AllowOverride isn't in any of my vhost declarations, but the others I have set to All. It's not ever reading the RewriteBase, That's the biggest issue.
Edit .htaccess, leave just the 5 rules above and see if they work.
And of course enable rewrite logging and watch the rewrite.log when you visit a URL that should be redirected somewhere else.
Could be that the apache user does not have write permission in that directory. Or since you're running Centos, it could be SELinux preventing the log file to be created.
Why don't you put the rewrite logs into the same directory as the other apache logs?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.