Apache Rewrite Command
I have a website that I am working on that 301 redirects were not installed the first time. The site has the following format:
http://www.OURSITE.com/current_categ...gion=aroostook Since 99% of the old URLs contain "current_category" is there a way to write a rule to capture any url containing this and redirect it? ( This would save a lot of time if possible. If not I assume eache individual URL or the 650 of them needs to be redirected individually) Thanks for your Help!!! |
Hi,
You don't give much details about the final URL, but you can use either RedirectMatch for simple redirections, or mod_rewrite for complex ones. In this case you need to use something like Code:
RewriteCond %{REQUEST_URI} ^/current_category |
Have a Great Day! |
All times are GMT -5. The time now is 06:25 PM. |