Need help with Mod Rewrite

Hello,

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:

http://192.155.95.107/

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:

http://192.155.95.107/firm-overview/firm-overview

Non-rewritten URL:

http://192.155.95.107/firm-overview/ind … m-overview">http://192.155.95.107/firm-overview/index.php?title_url=firm-overview

Re-written URL that works:

http://192.155.95.107/practice-areas/index

4 Replies

Some of your navs are wrong (based on your site map). Try:

http://192.155.95.107/firm-overview/index (not http://192.155.95.107/firm-overview/firm-overview)

http://192.155.95.107/attorneys/index (not http://192.155.95.107/attorneys/index-all)

http://192.155.95.107/careers/index (not http://192.155.95.107/careers/careers)

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.

This site works fine here: http://jgl.herrmanneasyedit.com/

As soon as I transferred it to this new server many of the links did not work.

It sure does work right on that site. Do you have the htaccess file they were using at HEE?

Did you set everything up on your VPS with the exact same directory structure and names?

I solved the issue.

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> 

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct