Forum Moderators: phranque

Message Too Old, No Replies

How can I use .htaccess to rewrite my url?

         

lfjigu

7:21 pm on Nov 9, 2006 (gmt 0)

10+ Year Member



The URL is
www.mysite.com/query.php?q=keyword

set to
www.mysite.com/keyword/

and
www.mysite.com/query.php?q=keyword+keyword

to
www.mysite.com/keyword-keyword/

jdMorgan

7:40 pm on Nov 9, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Start with Changing dynamic to static URLs [webmasterworld.com] - A basic introduction to using mod_rewrite on Apache server to implement search-engine-friendly static URLs on dynamically-generated sites, from our forum library.

For additional information, see the documents cited in our forum charter [webmasterworld.com] and the other tutorials in the Apache forum section of the WebmasterWorld library [webmasterworld.com].

Jim

lfjigu

9:22 pm on Nov 9, 2006 (gmt 0)

10+ Year Member



Thank you very much!Now i have changed all my URL.