Forum Moderators: phranque
RewriteCond %{REQUEST_URI} ^(.*)jsp(.*)$
RewriteRule ^(.*)$ http://www.example.com/index.php [R=301] [edited by: incrediBILL at 7:56 am (utc) on Jul 7, 2012]
[edit reason] fixed URLS, use Example.com [/edit]
There are a lot of referers to our old web that we would like to redirect to the new one. In fact our error.log file gets a lot of lines like this: "Request exceeded the limit of 10 internal redirects due to probable configuration error."
RewriteCond %{REQUEST_URI} ^(.*)jsp(.*)$
RewriteRule ^(.*)$ http://www.example.com/index.php [R=301,L] [edited by: incrediBILL at 7:56 am (utc) on Jul 7, 2012]
[edit reason] fixed URLS, use Example.com [/edit]
^(.*)jsp(.*)$ is garbage. Dump the ^(.*) and the (.*)$ ^(.*)$ simplifies to .* RewriteRule jsp http://www.example.com/ [R=301,L] RewriteRule jsp http://www.example.com/ [R=301,L]
RewriteRule \.jsp$
(why that "noooo!"?)
RewriteCond %{REQUEST_URI} ^(.*)jsp(.*)$
RewriteRule ^(.*)$ http://www.example.com/index.php [R=301,L] RewriteRule \.jsp$ http://www.example.com/ [R=301,L] [edited by: incrediBILL at 7:57 am (utc) on Jul 7, 2012]
[edit reason] fixed URLS, use Example.com [/edit]
RewriteRule \.jsp$ http://www.example.com/ [R=301,L] RewriteRule ^websonia http://www.example.com/ [R=301,L]