I've currently installed new xampp-win32-1.8.3-4-VC11 on my working station. I copied my project from work, changed httpd-vhosts.conf to look like this:
- Code: Select all
NameVirtualHost *
<VirtualHost *>
DocumentRoot "C:/Users/svrcek/XAMPP/htdocs/"
ServerName localhost
</VirtualHost>
<VirtualHost *>
DocumentRoot "C:/Users/svrcek/XAMPP/htdocs/eshop/"
ServerName eshop.local
<Directory "C:/Users/svrcek/XAMPP/htdocs/eshop/">
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Everything was working fine, but when i entered URL like
- Code: Select all
eshop.local/error/action
it went to 404 Page not found. There' s no folder error in my htdocs, all i wanted to do is just to redirect this page
to index.php and set $_GET['url'] = 'arror/action'.
My current .htacces file in C:/Users/svrcek/XAMPP/htdocs/eshop/
- Code: Select all
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?url=$1 [L,QSA]
Can someone help me? Need to make it work as soon as possible, thanks