.htaccess - How with an htaccess can I redirect an url to a different one -


how can htaccess file redirect old url new one?

example:

from: http://www.website.com/product/1283794 (requested)

to: http://www.website.com/ecom/product/1283794 (rerouted)

add htaccess file in document root:

redirect 301 /product/1283794 /ecom/product/1283794 

pretty easy isn't it? should take @ mod_alias documentation. it's pretty cut , dry, , obvious.


Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -