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

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.