Jump to content

How to redirect example.com to example.com/index.php?id_lang=4


Recommended Posts

Hi, I would like to know how can I force the user when entering my site example.com to be redirected to example.com/index.php?id_lang=4

using htaccess

I think some condition and rule should be written there, but need some help with this. It should work with or without www before my address.

Thank you in advance.

Link to comment
Share on other sites

OK, the first on is solved like:

RewriteCond %{HTTP_HOST} ^example\.com$
RewriteRule (.*) http://www.example.com/$1 [R=301,L]
RewriteRule ^$ index.php?id_lang=4 [L]


But how can I solved the second case?

I mean that I want to redirect the user from the OLD

http://www.example.com/category.php?id_category=12&orderby=name&orderway=asc&id_lang=5

to the new NEW

http://www.example.com/about_us.php

Thanks in advance.

Link to comment
Share on other sites

×
×
  • Create New...