.htaccess - How to redirect a webpage with .htacess -
rewriteengine on rewritebase / rewriterule viewtopic\.php?t=([^/]+)$ http://newdomain.com/viewtopic.php?t=$1
i have code in htaccess not working, idea? well, can see want redirect page of viewtopic.php?t=1 viewtopic.php?t=2000 new domain. please provide me solution. thanks.
in addition daniel gehriger's solution, add [l,r=301]
@ end of line. make apache send 301 page moved code client, informing page has indeed moved permanently. cause search engines, rss readers etc update links (if clever enough).
Comments
Post a Comment