Forum Moderators: phranque
www.domain.net
here is my .htaccess file
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^bv.domain.net$
RewriteCond %{REQUEST_URI} ^/$
RewriteRule .* /mydir/bv [L]
in /mydir/ i have one more .htaccess
<Files bv>
ForceType application/x-httpd-php
</Files>
so bv looks like directory.
the problem is that my script runs fine when i type domain.net/mydir/bv but when i try to rewrite i got WHITE page.
i think the problem is with request_uri, because my script use request_uri for showing pages. After rewriting the request_uri it's changed.
tnx
RewriteEngine on
RewriteCond %{HTTP_HOST} ^bv\.example\.net
RewriteCond %{REQUEST_URI}!^mydir/bv
RewriteRule (.*) /mydir/bv?requested_uri=$1 [L]
Jim
tnx JD.
YEAH i've made it works with your help JD :)!
I got just one more problem, i have admin directory, and i have to rewrite it.
RewriteEngine on
RewriteCond %{HTTP_HOST} ^bv\.example\.net
RewriteCond %{REQUEST_URI} !^mydir/bv
RewriteRule (.*) /mydir/bv?requested_uri=$1 [[b]QSA,[/b]L]
I'm sorry, but I do not understand your question about the admin directory. Please provide more information.
Jim
rewrited
url=asd.domain.net/admin/index.php?sid=f23c01fae75e4442f646c09fbf95149f
req_uri = index.php
again problem with request_uri, but this time with admin folder.