2012-07-03, 09:26 PM
Dear users
i got a small problem
i use a htacces to rewrite subdomains to a /folder/custom/
to explain that part do i need to provide a example
the /folder is a static folder but the /custom is a dynamic generated folder
so you get like this example
sub = sub.yoursite.com
folder = yoursite.com/folder
custom = yoursite.com/folder/sub
so if the subdomain change , so does the folder change
now do i have it working until you try to login as admin or when you press the login button
then you get this
the code i use to rewrite is
so the real question
how can i rewrite if the url is /forums/%1/forum/1%/1$
i basicly like to rewrite everything that includes back /forums/ to point back to the dynamic folder based on subdomain
i tryed differend things , but none of them seems to be working exept this 1 above for a part
can some1 help me with this ?
Greetings From PowerChaos
i got a small problem
i use a htacces to rewrite subdomains to a /folder/custom/
to explain that part do i need to provide a example
the /folder is a static folder but the /custom is a dynamic generated folder
so you get like this example
sub = sub.yoursite.com
folder = yoursite.com/folder
custom = yoursite.com/folder/sub
so if the subdomain change , so does the folder change
now do i have it working until you try to login as admin or when you press the login button
then you get this
can not find yoursite.com/folder/custom/folder/custom/admin.php
the code i use to rewrite is
Options +FollowSymLinks
Options +Indexes
RewriteEngine On
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteCond %{HTTP_HOST} !^www\.ismybb\.com$ [NC]
RewriteCond %{HTTP_HOST} ^(.*)\.ismybb\.com$ [NC]
RewriteRule (.*) /forums/%1/$1 [L]
so the real question
how can i rewrite if the url is /forums/%1/forum/1%/1$
i basicly like to rewrite everything that includes back /forums/ to point back to the dynamic folder based on subdomain
i tryed differend things , but none of them seems to be working exept this 1 above for a part
can some1 help me with this ?
Greetings From PowerChaos