Wordpress MU, mod_rewrite and $_SERVER['REQUEST_URI']

New to mod_rewrite? This is a good place to start.

Wordpress MU, mod_rewrite and $_SERVER['REQUEST_URI']

Postby tunyafix » Mon Jul 06, 2009 9:18 am

Hi, we developed an plugin for wordpress Mu. We didn't change the default .htaccess file.

This plugin acts if in url has the word "CLASSROOM". To detect that we use $_SERVER["REQUEST_URI"]. Then we test in diferents computers and everything works. But in production server it does not work. I tried

The production server we don't receive in REQUEST_URI the key word.
If we see the logs of apache (in the machine with lynx)
beta.ftacademy.eu:80 194.109.117.215 - - [06/Jul/2009:10:53:52 +0200] "GET /wordpress-mu/CLASSROOM HTTP/1.0" 302 20 "-" "Lynx/2.8.7dev.9 libwww-FM/2.14 SSL-MM/1.4.1"
beta.ftacademy.eu:80 194.109.117.215 - - [06/Jul/2009:10:53:54 +0200] "GET /wordpress-mu/ HTTP/1.0" 200 141 "-" "Lynx/2.8.7dev.9 libwww-FM/2.14 SSL-MM/1.4.1"

Somebody can help me?? The apache is 2.2.9 on 2.6.18-5-xen-amd64

Thanks!!!!

Antoni
tunyafix
 
Posts: 2
Joined: Mon Jul 06, 2009 1:30 am

Postby richardk » Mon Jul 06, 2009 12:20 pm

What is the mod_rewrite?

Why do you think it is mod_rewrite? I think it is more likely Wordpress is the cause of the redirect. Check if the _SERVER variables are set correctly.
richardk
 
Posts: 8800
Joined: Wed Dec 21, 2005 7:50 am

Postby tunyafix » Mon Jul 06, 2009 11:53 pm

Hi!

You are right the problem is in Wordpress configuration
tunyafix
 
Posts: 2
Joined: Mon Jul 06, 2009 1:30 am


Return to Beginner's Corner

Who is online

Users browsing this forum: No registered users and 116 guests

cron