I have a project set up on server which use apache web server with PHP as scripting language. On my local machine (using XAMPP) .htaccess
is working. I tested it with below script and it gets redirect to Google. Below script is very first line of the file.
RewriteEngine On
Options +FollowSymLinks
RewriteRule ^test\.php http://www.google.com/? [R=301,L]
But the same config on server is not working. I confirm mod_rewrite
is enabled.
I do not have access to server configuration and I can see and confirm only through phpinfo().
Symfony 2.6 + apache 2.2 + php 5.5.23 is the configuration.