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

Asked

Viewed 67 times

-1

I recently migrated my server to Ubuntu 14.04 with PHP 5.5.9 and Apache/2.4.7, but the rewrite that has string file name simply doesn’t work.

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

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>

1 answer

-2


Solution:

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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.