-
htaccess help
I guess this isn't a great place to put this but i need help with using htaccess files. i want to make a html page with a flash navigational bar for if you get lost.
what i did was i made a file saying errorDocument /errors/notfound.html
yeah all that stuff... i put the notfound.html in a folder called errors. so ityped my website then a random adress after and a 404 thing came up.
also it found the htaccess file which annoyed me.
look:
Click here for an example
my website is jamitback.com/julian which exists but the htaccess file is at my site not www.jamitback.com... will it still work?
-
What exactly does your .htaccess file say?
If your .htaccess file is sitting in your /julian directory, it should read:
Code:
ErrorDocument 404 /julian/errors/notfound.html
-
huh? how's that right?
the julian area is my website!
i don't want it to redirect to my page while you are at jamitback.com!!!
-
You completely did not read my response. Try again.
-
ok i thought it would do the same thing for the main page... sorry wasn't sure
-
Nope. .htaccess files are specific to the directory they are in. They can't affect a directory above.
-
alright cool, thanks man. I owe you a thanks so here it is lol
... okay i just tested it out. HOORAY IT WORKS!!!
unfortunately it doesn't work from www.bounceboy.com.au
www.jamitback.com/julian is where www.bounceboy.com.au gets redirected to.
i guess you can't really do anything about that though, so i'll have to wait until i get my OWNish website
-
You're right, it's not going to work that way. Your bounceboy.com.au domain isn't even a redirect, it's just a frameset holding jamitback.com/julian inside of it. They aren't connected at all. I can get any domain and stick google.com in it. Does that mean I can control Google? No.
You have a similar set up. You'll need to get a real host and have the domain pointing to your server with an A record.
-
yeah it goes to file not found whenever i click on something
i disabled the script for now... i'll add it to the new website i am hoping to get soon