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 just moved my website from a server running Apache 2.0 to Apache 2.2. I have a rewrite in my .htaccess which was working prior to the move, but now it doesn't work. Here is the rewrite.
Sorry, the leading slash actually wasn't there. I accidentally pasted one of my other attempts to get it to work. Is there something wrong with the regex? I was told that Apache 2.2 is much more strict in terms of what it will accept for rewrites compared to 2.0
I don't think apache 2.2 is more strict regarding regexes. In fact I've tested your rule with a php file that accepts 2 arguments and it works.
So what is the problem you face? You can take a look at rewrite_log and error_log to see what happens.
So I've tried emailing my server admin about getting access to those logs, but they haven't responded so I think I'm on my own for this. One thing I noticed is that if I replace the / with a - in the rewrite condition (and make the corresponding change in the calling url), it works. Do you have an idea of why this is occurring?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.