Error 500 when using rewrite with the same file name (/ tag / does not go to /tags.php)

-1

Recently I migrated my server to Ubuntu 14.04 with PHP 5.5.9 and Apache / 2.4.7, but rewrite that has string with filename simply does not work.

Error 500 RewriteRule ^tag/?(.*)/?$ /tags.php?tag=$1 [L]

It works RewriteRule ^tag/?(.*)/?$ /atags.php?tag=$1 [L]

My apache.conf

<Directory />
        Options FollowSymLinks
        AllowOverride All
        Require all denied
</Directory>

<Directory /var/www/>
        Options FollowSymLinks
        AllowOverride All
        Require all granted
</Directory>
    
asked by anonymous 05.06.2014 / 21:05

1 answer

-2

Solution:

RewriteRule ^tag/(.*)/?$ /tags.php?tag=$1 [L]
    
06.06.2014 / 19:06