I'm having an issue with my .htaccess script which handles seo rewrites that masks php pages to look like directory structures. For example, /contact-us/ would point to contact.php, and /portfolio/ points to portfolio.php and so forth. The script works fine on our Apache 2 dev server, but when I move it to a shared hosting server (not sure of their apache version), rewrites with hyphens work, but the ones without a hyphen do not. I can't even get a copy of the rewrite logs to be able to see where the error is occurring. Here is a sample of my .htaccess file:
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
#Force www link
RewriteCond %{HTTP_HOST} !^www.website.com [NC]
RewriteRule ^(.*)$ http://www.website.com/$1 [R=301,NC,L]
#force trailing slash on files
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !(.*)/$
RewriteRule ^(.*)$ $1/ [L,R=301]
RewriteRule ^index.php$ / [R,NC]
ReWriteRule ^who-we-are/$ whoweare.php [NC,L]
ReWriteRule ^portfolio/$ portfolio.php [NC,L]
ReWriteRule ^portfolio/web-development/$ portfolio_webdev.php [NC,L]
So, /who-we-are/ seems to redirect correctly, but /portfolio/ doesn't. I'm wondering if anyone can spot an error or something I am not doing correctly?
Please help.