Hi, sorry if I post in the wrong forum, this is both about website dev and apache configuration.
How can I redirect, using a .htaccess file, a "fake" directory url, like
http://www.example.com/hard_director.../var2/var3.php
to /hard_directory/script.php?var1=$var1&var2=$var2&var3=$var3
my .htaccess file, placed in /hard_directory/ contains:
Code:
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]*)/([^/]*)\.php$ script.php?id_urlrw1=$1&id_urlrw=$2 [L]
It doesn't produce a 404, just a blank page, and script.php is not called.
I also tried to escape the slash, to remove the RewriteConds, and replace [^/] with .*
Help
Recent comments
11 hours 26 min ago
14 hours 22 min ago
15 hours 36 min ago
16 hours 59 min ago
18 hours 37 min ago
20 hours 6 min ago
21 hours 19 min ago
1 day 13 hours ago
1 day 14 hours ago
1 day 17 hours ago