SA-MP Forums Archive
.htaccess help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Other (https://sampforum.blast.hk/forumdisplay.php?fid=7)
+--- Forum: Everything and Nothing (https://sampforum.blast.hk/forumdisplay.php?fid=23)
+--- Thread: .htaccess help (/showthread.php?tid=229815)



.htaccess help - DirtyLilFreak - 22.02.2011

how can I forward a domain to a subfolder using the htaccess

like I want to forward www.mydomain.com to www.mydomain.com/folder

Any idea how I can do this? :/ i tried googling and using their methods but failed. Looking forward for some help.

Thnx in advance.


Re: .htaccess help - Kwarde - 22.02.2011

DirectoryIndex


Re: .htaccess help - DirtyLilFreak - 22.02.2011

Quote:
Originally Posted by Kwarde
Посмотреть сообщение
DirectoryIndex
What do you mean? :/


Re: .htaccess help - woot - 22.02.2011

I'm not really sure either but I would use a simple PHP redirect;

Код:
<?
	header("HTTP/1.1 301 Moved Permanently");
	header("Location: http://mydomain.com/folder/");
?>



Re: .htaccess help - Kwarde - 22.02.2011

Exora, he asked for .htaccess
DiryLilFreak, in .htaccess:

DirectoryIndex {destination}. So to go to the 'folder' map:
DirectoryIndex folder


Re: .htaccess help - DirtyLilFreak - 22.02.2011

is it the .htaccess inside cgi-bin or I create a new .htaccess file? Coz I made a new one. and enetred your code and i get a 403 error :/ I didnt get this before.

EDIT: nvm the php code worked xD thnx