rider Posted August 2, 2010 Share Posted August 2, 2010 Hi, my Whmcs is installed on <dot/com> directory My actual url to domainchecker is like this : https://www.mydomain.com/dot/com/domainchecker.php'>https://www.mydomain.com/dot/com/domainchecker.php I would like domaincherker become my home page : https://www.mydomain.com Any idea ? 0 Quote Link to comment Share on other sites More sharing options...
sohouk Posted August 2, 2010 Share Posted August 2, 2010 You could use an Apache redirect if you are on Linux and use that, or do a permanent redirect some other way if its on a different system. 0 Quote Link to comment Share on other sites More sharing options...
rider Posted August 2, 2010 Author Share Posted August 2, 2010 Thanks, I did ever read some instruction about permanent redirect on htaccess file, but that I have difficul to understand is how get this in practice regarding my request ... because If I do : 1/ perment redirection from : https://www.mydomain.com/dot/com/domainchecker.php'>https://www.mydomain.com/dot/com/domainchecker.php TO https://www.mydomain.com Then this don't sole the case from : https://www.mydomain.com TO display the domainchecker page 2/ If I do case n°1 et also do an other redirection from : https://www.mydomain.com To : https://www.mydomain.com/dot/com/domainchecker.php'>https://www.mydomain.com/dot/com/domainchecker.php Maybee here there something wrong also because that don't still solve my request as write in my first post. Any idea what exact instruction to do ? Thanks 0 Quote Link to comment Share on other sites More sharing options...
sohouk Posted August 3, 2010 Share Posted August 3, 2010 Your original message suggested you only wanted people who went to your home page https://www.mydomain.com to be permanently redirected to https://www.mydomain.com/dot/com/domainchecker.php You can do that with .htaccess on a Linux server. Put a blank index.html or index.php page in the root of the website thenc opy the following into a text file, then rename it '.htaccess' (note the leading dot!) Options +FollowSymLinks RewriteCond %{THE_REQUEST} ^.*/index.html RewriteRule ^(.*)index.html$ http://www.yoursite.com/$1 [R=301,L] RewriteCond %{THE_REQUEST} ^.*/index.php RewriteRule ^(.*)index.php$ http://www.yoursite.com/$1 [R=301,L] (Replace yoursite.com with the real destination you want ) That will redirect the index pages to your new location but leave any other stuff in the root folder alone. 0 Quote Link to comment Share on other sites More sharing options...
rider Posted August 3, 2010 Author Share Posted August 3, 2010 Great, Many thanks 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.