Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Redirect with .htaccess
November 28, 2006, 7:30 pm
rate this thread
URL. I need to redirect the bad version to the good version with 301
I've tried a couple of things, but it's not working.
The bad URLs look like this:
That should redirect to:
This one doesn't work at all:
http://www.example.com/dir /$2_$1 [R=301,NC,L]
This one works, except it doesn't include the "Hello" and the "World", only
RewriteRule ^search\.php http://www.example.com/dir /$2_$1 [R=301,NC,L]
Re: Redirect with .htaccess
Just use a robots.txt to tell googlebot not to index the wrong page. And
also go ask the Apache questions in an apache group, this is c.l.php...
"Ohjelmoija on organismi joka muuttaa kofeiinia koodiksi" - lpk
http://outolempi.net/ahdistus/ - Satunnaisesti pivittyv nettisarjis
email@example.com | rot13(firstname.lastname@example.org)
- » Learn PHP 5.0 with interactive tutorials at www.tutorialsdirect.com
- — Previous thread in » PHP Scripting Forum