Jump to content

Rewrite URLs not working


djtide

Recommended Posts

Posted

Trying to get first installation running and no page except index is showing up. Every other link 404's. Have an .htaccess file and mod_rewrite enabled, use_friendly_urls is on, but nothing seems working. I'm wondering if it's some PHP not sending variables type of issue.

 

<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule \.(js|css|jpeg|jpg|gif|png|ico|map)(\?|$) /404error.php [L,NC]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

 

Posted

To answer my own question, place this in 000-default.conf in Apache:

 

<Directory /var/www/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
 </Directory>

 

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...