hi
how i can change this to make it work in localhost :
Options +FollowSymLinks
Options +Indexes
RewriteEngine On
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com$ [NC]
RewriteCond %{HTTP_HOST} ^(www\.)?([^\.]+)\.yourdomain\.com$ [NC]
RewriteRule (.*) /mybb/$1 [L]
is it ok to remove .com ?
thank you for your help
What exactly is that supposed to do may I ask?
i want to replace yourdomain with localhost, how i can do that ?
please can you rewrite the code ? thank you
^ most probably localhost should be
http://127.0.0.1
Options +FollowSymLinks
Options +Indexes
RewriteEngine On
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteCond %{HTTP_HOST} !^localhost$ [NC]
RewriteCond %{HTTP_HOST} ^(www\.)?([^\.]+)localhost$ [NC]
RewriteRule (.*) /mybb/$1 [L]
That should work.
it doesn't
what it does it mean this / and ^
how can i test mod rewrite ?
is it work only with a TLD ?
i tested mod_rewrite, it OK
but whene i just add this line to httpd.conf
ServerAlias
www.localhost localhost *.localhost
the entire site doesn't work, why?
thank you for your answers
can i know at least, why everybody wan't to help me anymore?!!!!
If you tell us what exactly you're trying to do with the .htaccess, we might be able to help more.
i'm trying to run multi mybb in localhost
thanx
it must be someone who used his computer to host this script before, or at least used .htaccess
i have windows xp and i'm using server reactor, please help me !!