Castorpoluks Posted January 20, 2009 Share Posted January 20, 2009 Hello all, I just finished couple rewrites on my website from junk links to keyword-reach-normal links. example: Old link http://www.mydomain.com/kategorije.php?id=4 i changed to http://www.mydomain.com/nosac-za-projektor/ But i still can open both pages.I want to do 301 redirection on new link so then Google will do it re-indexing of pages:delete old bad-link-pages and change with new-good-link-pages. Please can someone help me how to do that. This is copy from my htaccess: RewriteRule ^nosac-za-projektor/$ kategorije.php?id=4 [L] RewriteRule ^nosac-za-projektor/nosaci-za-projektore/?$ modeli.php?id=10 [L] RewriteRule ^nosac-za-projektor/nosaci-za-projektore/(.*)$ /$1 [L] RewriteRule ^nosac-za-projektor/(.*)$ /$1 [L] I tried to add [R=301,L] in the first line but i get then redirection from new link to old. Sorry for my English and Thx on your time Quote Link to comment https://forums.phpfreaks.com/topic/141643-htaccess-dynamic-url-problemshelp-please/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.