Jump to content

Recommended Posts

we have a 3 year old website. i would like to overhaul the url's,

 

like making searchState.php into /state/search, i would implement that as RewriteRule ^state/search/?$ /searchState.php

or searchCity.php into /city/search,  i would implement that as RewriteRule ^city/search/?$ /searchCity.php

 

does it will affect the current ranking and all the index pages? what are your recommendations? i just talk to a seo man which said i should use Redirect 301.

 

thanks.

Link to comment
https://forums.phpfreaks.com/topic/187678-moving-to-structured-urls/
Share on other sites

As far as I'm aware the use of Redirect 301 would be for the opposite purpose of what you have. In other words you would also have in your .htaccess file a rule that would Redirect your old format URLs to your new format (obviously being careful not to form a loop). That way if somebody clicks on a link of the old format then it's redirected to the new one, before then rewriting in the background back to the old one. This essentially ensures that any links currently out there will essentially link to the same URL as new links.

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.