4 replies
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
#redirect
  • Profile picture of the author Manfred Ekblad
    Originally Posted by blackjack View Post

    I searched on Google and solution I found is using htaccess, but I am not sure how to do it?
    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.
    {{ DiscussionBoard.errors[2025267].message }}
    • Profile picture of the author blackjack
      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
      {{ DiscussionBoard.errors[2026133].message }}
  • Profile picture of the author Manfred Ekblad
    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.
    {{ DiscussionBoard.errors[2026183].message }}
  • Profile picture of the author Bellthorpe
    If you have cPanel, you can add it directly without worrying about the .htaccess format.
    {{ DiscussionBoard.errors[2029082].message }}

Trending Topics