.htaccess

Status
Not open for further replies.

hisownma

New Member
Messages
18
Reaction score
0
Points
1
Hi all,

I couldn't find a .htaccess file in public.html, so I created one. I couldn't see anywhere to unhide hidden files, so I guessed there just wasn't a .htaccess there. Well, it wasn't working, so then I tried a free online generator and this is the code it generated and I've uploaded it in a .txt file to my public.html:

//Rewrite to www
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^hisownman.com[nc]
RewriteRule ^(.*)$ http://www.hisownman.com/$1 [r=301,nc]

//Custom 404 errors
ErrorDocument 404 404.html

All I want it for is to just use 'hisownman.com' rather than the 'www.' equivilant and to add a 404 error page. I uploaded a page called '404.html' to the public.html but I still get the bog standard 404 page. But this code isn't working either.

Any ideas where I might be going wrong?

Thanks in advance.

Kieran.
 
Status
Not open for further replies.
Top