Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not Solved htaccess experts i really need your help plz
#1
Not Solved
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
#2
Not Solved
What exactly is that supposed to do may I ask?
#3
Not Solved
i want to replace yourdomain with localhost, how i can do that ?
please can you rewrite the code ? thank you
#4
Not Solved
^ most probably localhost should be http://127.0.0.1
#5
Not Solved
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.
No longer involved in the MyBB project.
#6
Not Solved
it doesn't Sad

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
#7
Not Solved
can i know at least, why everybody wan't to help me anymore?!!!!
#8
Not Solved
If you tell us what exactly you're trying to do with the .htaccess, we might be able to help more.
#9
Not Solved
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 !!
#10
Not Solved
HELP PLEASE


Forum Jump:


Users browsing this thread: 1 Guest(s)