Redirect

by 4 replies
5
Hi

How do I redirect the following

mydomain.com/keyword

to

mydomain.com/index.html/keyword


I searched on Google and solution I found is using htaccess, but I am not sure how to do it?

Anyone can help me on this?

Thanks
#programming #redirect
  • Hmm... what part are you not sure about?

    If you found a solution with htaccess, all you should have to do is to edit the htaccess file directly on the server or upload it using FTP.
    • [1] reply
    • The part I didn't understand where is this htaccess file on my hosting account?

      I have few domain names. I can see public html folder with all my domain names. How do I find and edit htaccess for just one domain.

      Thanks
  • Hmm... I dont know about your server configuration, but I'm guessing you have something like this:

    root folder
    ./public_html
    ./public_html/mydomain.com
    ./public_html/myotherdomain.com
    ./public_html/mythirddomain.com

    and so on...

    in that case, when the visitor navigates to mythirddomain.com, the server will look in the ./public_html/mythirddomain.com-folder. Add/edit the htaccess file in that folder.

    Please note, the correct filename is .htaccess (with a leading dot). And some FTP-clients hide the .htaccess file so you might not see it. If that is the case, try creating it on your local computer and upload it anyway.
  • If you have cPanel, you can add it directly without worrying about the .htaccess format.

Next Topics on Trending Feed