Apache .htaccess Redirect
Hey all,
Having Trouble understanding how to issue a redirect (or rewritecond) in .htaccess. We modified our site directories and pages are being served differently. Old pages are cached and we want to make sure the world can still access them. Need to dynamically redirect with our $_GET methods carrying over. OLD URL: http://www.mysite.com/search.php?itm...4801&store=003 NEW URL: http://www.mysite.com/search/product..._num=001844801 All help is appreciated! |
Hi,
You should use %{QUERY_STRING} for this kind of redirect. If you're going to put rewrite stuff inside a .htaccess, then you can try the following: Code:
RewriteEngine on |
Most excellent, I see that working, except there is a conflict with an actual redirect rule I set, (Yes; I cause my own problems).
So now the rewrite for the $_GET methods, actually loads me to: Code:
http://www.mysite.com/search/index.php?store=003&itm_num=001844801 Code:
http://www.mysite.com/search/product.php?store=003&itm_num=001844801 |
Maybe this:
Code:
RewriteEngine On |
All times are GMT -5. The time now is 06:27 AM. |