Issuing Redirects!!!

Discuss practical ways rearrange URLs using mod_rewrite.

Issuing Redirects!!!

Postby natbob1 » Sat Oct 04, 2008 5:23 pm

Code: Select all
RewriteRule ^/test/(.*)/(.*)/$ http://www.test.com/index.php?pg=$1&pg2=$2 [L]


this rewrite statement is causing the browser to request the rewritten URL instead of staying at the one like follows:
www.test.com/test/var1/var2/ is requested
server send redirect to
www.test.com/test/index.php?pg=var1&pg2=var2
browser requests this page and is displayed in URL bar

I had multiple mod rewrites working, but now they all send the redirect, is there a global setting that can change this?
natbob1
 
Posts: 1
Joined: Sat Oct 04, 2008 5:16 pm

Postby richardk » Sun Oct 05, 2008 11:06 am

What is the rest of your mod_rewrite like?

Try removing
Code: Select all
http://www.test.com
richardk
 
Posts: 8800
Joined: Wed Dec 21, 2005 7:50 am


Return to Friendly URLs with Mod_Rewrite

Who is online

Users browsing this forum: No registered users and 11 guests

cron