Forum Moderators: phranque

Message Too Old, No Replies

Can you "test" a htaccess file?

         

phantombookman

6:54 pm on Jan 20, 2004 (gmt 0)

10+ Year Member



Hi
I'm brand new to htacces so forgive my ignorance. I have been trying to do 301 redirect using the info in these forums and Google searches etc.

I have created (I think) a htaccess file using notepad but it does not seem to matter what code I use or where I place the file it seems to do nothing. I would be pleased to get even an error page.
I'm trying to fathom whether the file, the code or locatio is at fault (or indeed all 3)
Any help greatly received as I am on the verge of simply deleting 2 websites and waiting for Google to figure everything out for itself.
All the best
Rod

kevinpate

7:12 pm on Jan 20, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Are you naming it .htaccess >
(the dot goes on the front of the name)

Are you placing it in the root directory?
(it's possible to have a subdirectory specific
.htaccess file for just that directory as well)

Finally, and don't worry, you won't be the first,
are you certain your set-up supports a .htaccess file?

I'll send you a sticky mail showing an abbreviated version of my .htaccess file in
just a little bit.

kevin

phantombookman

7:28 pm on Jan 20, 2004 (gmt 0)

10+ Year Member



Hi Kevin
thanks for that, much appreciated.
I used notepad and saved the file exactly as
".htaccess"
It shows up on my space without the "" though.
I am on readyhosting and have been told it has apache though I personally could not guarantee that.

I had 3 sites on one lot of space, mysite.com (other 2 domains point to mysite.com/web and mysite.com/web2)and I now have them independently hosted but still using the original domain names.

I am sure I am doing something basically wrong, rookie error somewhere I presume.
Many thanks
Rod

isitreal

10:50 pm on Jan 23, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



type some random characters on your .htaccess file, then upload it, then check your site.

If you have .htaccess support enabled, and if you have apache server, you will get an immediate server error. Do this late at night in case it does work.

If you get no server error page, you don't have htaccess support on your web hoster, or you don't have apache server.

ScottM

12:06 am on Jan 24, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I would like to point out you can put an ".htaccess" file in any directory you want to have control over.