Jacksta
Jacksta

Reputation: 1293

apache url rewrite on .htaccess

I need to figure out the code on my .htaccess for the following.

Redirect url http://www.mydomain.com/somekw to http://www.mydomain.com/differentkw also http://www.mydomain.com/somekw?sort=rating&order=ASC to http://www.mydomain.com/differentkw

I have read up about .htaccess but I have very little skills, hopefully someone can help me out.

Upvotes: 0

Views: 110

Answers (1)

qmega
qmega

Reputation: 1241

This should work:

RewriteEngine on
RewriteRule somekw differentkw [L]

That will change any instance of somekw of differentkw. The GET values will stay there.

Just make sure you have mod_rewrite enabled.

Upvotes: 1

Related Questions