Skip to content
WJunction - Webmaster Forum

htaccess rewrite url

Status
Not open for further replies.

AmN

Established Member
342
2009
41
How to rewrite url like this
Code:
http://site.com/?r_sortby=highest_rated&r_orderby=desc

to something like this

Code:
http://site.com/popular/

im try and i cant get it to work, have internal server error all time :(
 

2 comments

You can try something like this.(Make sure that the 'mod_rewrite' module is enabled in the 'httpd.conf' file)
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^popular/ ?r_sortby=highest_rated&r_orderby=desc [L]
</IfModule>
Note: Don't forget to restart the Apache service before testing this code.
 
Last edited:
Status
Not open for further replies.

About the author

AmN
Established Member · Joined
342
Messages
41
Reactions
28
Points
Grow your business

Advertise on WJunction

Connect with an established international community of webmasters, hosting providers, developers and online entrepreneurs.

  • Premium & Premium+ Sticky
  • Dedicated section banners
  • Site-wide banner advertising
Explore advertising options
Back
Top Bottom