lekvarnik Posted April 6, 2011 Share Posted April 6, 2011 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=4using htaccessI 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 More sharing options...
lekvarnik Posted April 6, 2011 Author Share Posted April 6, 2011 Anybody?I am sure, it i pretty simple, os for somebody experienced in htaccess it is a piece of cake .Thank you for any advice. Link to comment Share on other sites More sharing options...
lekvarnik Posted April 6, 2011 Author Share Posted April 6, 2011 Additionally, I would like to redirect something like:http://www.example.com/best-sales.php?orderby=name&orderway=asc&id_lang=5'>http://www.example.com/best-sales.php?orderby=name&orderway=asc&id_lang=5to http://www.example.com/ is this possible?Thanks in advance. Link to comment Share on other sites More sharing options...
lekvarnik Posted April 6, 2011 Author Share Posted April 6, 2011 PLease, guys I need some help.Thanks in advance. Link to comment Share on other sites More sharing options...
lekvarnik Posted April 6, 2011 Author Share Posted April 6, 2011 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 OLDhttp://www.example.com/category.php?id_category=12&orderby=name&orderway=asc&id_lang=5to the new NEWhttp://www.example.com/about_us.phpThanks in advance. Link to comment Share on other sites More sharing options...
lekvarnik Posted April 6, 2011 Author Share Posted April 6, 2011 Please guys I need some advice, thanks in advance. Link to comment Share on other sites More sharing options...
lekvarnik Posted April 6, 2011 Author Share Posted April 6, 2011 Anybody with an advice? Link to comment Share on other sites More sharing options...
lekvarnik Posted April 6, 2011 Author Share Posted April 6, 2011 Is this possible at all or not? Link to comment Share on other sites More sharing options...
MrBaseball34 Posted April 6, 2011 Share Posted April 6, 2011 some questions go weeks before they get answers. my suggestion would be to ask this question in a forum conducive to modification of .htaccess filessuch as these:http://www.webmasterworld.com/apache/http://forums.devshed.com/apache-development-15/http://forums.digitalpoint.com/forumdisplay.php?f=49 Link to comment Share on other sites More sharing options...
Recommended Posts