crazy.works
02-25-2009, 08:24 PM
hello,
i wanna redirect php file called file.php to path called /web/ in the same directory .
so i was trying like that
RewriteEngine on
Options +FollowSymlinks
RewriteRule ^file\.php$ /web/ [R=301,L]
but it redirected me to my main site url web/ with ignoring the file.php directory and the its path too, i mean the file.php in url www.mysite.com/path1/path2/file.php , i uploaded the htaccess file in path2 folder
but my rule redirected me to www.mysite.com/web/ not www.mysite.com/path1/path2/web/ !!!!!!
so please for some reason i cant write the path in the rule, i mean i cant write like that
RewriteRule ^file\.php$ path1/path2/web/ [R=301,L]
it gonna works but i have reason that makes me not able to do it and i have to got direct rule without write path in the htacces file
so please help me in that
thanks
i wanna redirect php file called file.php to path called /web/ in the same directory .
so i was trying like that
RewriteEngine on
Options +FollowSymlinks
RewriteRule ^file\.php$ /web/ [R=301,L]
but it redirected me to my main site url web/ with ignoring the file.php directory and the its path too, i mean the file.php in url www.mysite.com/path1/path2/file.php , i uploaded the htaccess file in path2 folder
but my rule redirected me to www.mysite.com/web/ not www.mysite.com/path1/path2/web/ !!!!!!
so please for some reason i cant write the path in the rule, i mean i cant write like that
RewriteRule ^file\.php$ path1/path2/web/ [R=301,L]
it gonna works but i have reason that makes me not able to do it and i have to got direct rule without write path in the htacces file
so please help me in that
thanks