Home » Htaccess Tools » Htaccess Questions  » URL redirect with percentage sign (How to redirect a URL when it has a percentage sign)
URL redirect with percentage sign [message #1942] Fri, 30 July 2010 02:09
sananthv  is currently offline sananthv
Messages: 1
Registered: July 2010
Location: Melbourne
Hi

I recently launched an updated version of my site. For non percentage URL's I am using "redirect" command to redirect URL's.

Currently I am redirecting all URL's which has a percentage sign to a perticular directory. This is because google has indexed some of my joomla site links that have percentage signs. The command i have used is

RewriteCond %{THE_REQUEST} ^[A-Z]+\ /[^%?\ ]*\%
RewriteRule ^. http://domain/folderone/index.php [R=301,L]

Now I have a situation where I want to redirect different URL's with percentage signs to different locations. Example

http://domain/folder%10two/index.php to http://domain/folderthree/index.php

and

http://domain/folder%10four/index.php to http://domain/folderfive/index.php

How should my code look like. Appreciate the help.
Previous Topic:.htaccess to manage client's FTP folders
Next Topic:short url
Goto Forum:
  


Current Time: Sat Feb 4 03:02:35 CET 2012

Powered by: FUDforum 3.0.0.
Copyright ©2001-2009 FUDforum Bulletin Board Software