Jump to content

How to get domainchecker as URL home page ?


rider

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated