Need help with Mod Rewrite
I just uploaded the client's website files to the VPS server. Unfortunately, most of the interior pages are not working. I am pretty sure the problem has to do with mod_rewrite not working, but the crazy thing is that some rewritten URL pages are working.
This is the site:
If you click on Firm Overview link in the main nav, you will see that the page does not work. However, if you click on Practice Areas, the page works. Both of these pages have rules in the htaccess files that are rewriting the URLs.
Can you help determine the problem?
Running Ubuntu 12.04
FYI:
Re-written URL:
Non-rewritten URL:
Re-written URL that works:
4 Replies
The 'practice-areas' url works, but none of the links off it do (based on your site map).
The contact-us link work, but the locations linked from it do not.
Has this site ever 'worked'? I see that it's a migration from an .asp site.
As soon as I transferred it to this new server many of the links did not work.
Did you set everything up on your VPS with the exact same directory structure and names?
In this file:
/etc/apache2/sites-available/default
I changed this:
<directory var="" www="">Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all</directory>
to this:
<directory var="" www="">Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all</directory>