Htaccess

Status
Not open for further replies.

Ambition

Active Member
121
2010
0
0
Hey guys, what kind of stuff should i put into my htaccess?

sorry if it sounds nooby xD

Thanks, and also, how would be the best way to redirect, for example the root directory to a subdirectory (forum),

Thanks, im new to all this webmaster shit <3
 
3 comments
wtf? You don't put stuff in your htaccess for fun xD
You only edit/add to your htaccess file if you need to. So you gotta tell us what you're trying to achieve.

Redirecting root to subdirectory is easy. Just place an index.html file in your root directory and put this in it:
Code:
<meta http-equiv="refresh" content="0;http://domain.com/subdirectory" />
 
urgent is nothing in htaccess, but it's nice to have the www to non www redirection or the other way around. but you can do all this in php too of course.
 
Status
Not open for further replies.
Back
Top