Warrior Forum - The #1 Digital Marketing Forum & Marketplace

Warrior Forum - The #1 Digital Marketing Forum & Marketplace (https://www.warriorforum.com/)
-   Programming (https://www.warriorforum.com/programming/)
-   -   Redirect (https://www.warriorforum.com/programming/205382-redirect.html)

blackjack 24th April 2010 06:39 PM

Redirect
 
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

Manfred Ekblad 24th April 2010 07:43 PM

Re: Redirect
 
Quote:

Originally Posted by blackjack (Post 2025137)
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.

blackjack 25th April 2010 03:55 AM

Re: Redirect
 
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

Manfred Ekblad 25th April 2010 04:22 AM

Re: Redirect
 
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.

Bellthorpe 25th April 2010 11:06 PM

Re: Redirect
 
If you have cPanel, you can add it directly without worrying about the .htaccess format.


All times are GMT -6. The time now is 10:28 PM.