Forum Moderators: phranque

Message Too Old, No Replies

Change Script name to keyword

Change Script name to keyword

         

roycerus

6:34 am on Nov 9, 2008 (gmt 0)

10+ Year Member



I have a wordpress install where the url structure is:

www.domain.com/index.php?/topic_title

I want to change this to:

www.domain.com/keyword/topic_title

Is this possible using htaccess and mod_rewrite?
Kindly help.

Regards,
Roy

g1smd

11:03 am on Nov 9, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Yes and no.

Mod_rewrite does not change URLs.

You need to change the links on your pages to the new URL format.

Then you use mod_rewrite to connect requests for those URLs to the old internal filepath on the server using an internal rewrite.

Additionally, you also set up a redirect from the old URLs to the new URLs so that the old URLs cannot be indexed.

The sticky post at the top of the forum points to several previous threads where the process is described in detail.