Jump to content

Apache Mod Rewrite


morrisjohnny
 Share

Recommended Posts

I'm having problems migrating one client from web server to another. I have attached the current .htaccess in use at the bottom. On the current site visitinghttp://domain.com/index.php/about-ushttp://domain.com/index.php/news-eventshttp://domain.com/index.php/newsall return correct pageson the new website these pages load fine However going to this pagehttp://domain.com/index.php/news/23/87/Gardens-Opening-for-Leuchie-House-2012returns a Not Found The requested URK was not found on this server. (a side note which may help is)The hyperlinks on the live site shows links as index.php/about-us for example yet on the new site they are shown as index.php?page=about-us What could be causing this? the database/files and .htaccess files have all been brought across. .htaccess file

  <IfModule mod_rewrite.c>RewriteEngine onRewriteBase /leuchieRewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule ^(.+)$ index.php?page=$1 [QSA]</IfModule> <IfModule mod_header.c>Header unset ETagFileEtag None</IfModule> <IfModule mod_deflate.c>AddOutputFilterByType DEFLATE text/css text/plain text/xml image/gif image/jpeg image/png</IfModule> <IfModule mod_expires.c><FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">ExpiresActive OnExpiresDefault "access plus 1 year"<IfModule mod_header.c>  Header set Cache-Control "public"</IfModule></FilesMatch></IfModule> 

Edited by morrisjohnny
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...