Jump to content

htaccess dynamic url problems?Help Please!


Castorpoluks

Recommended Posts

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

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.