Jump to content
Sign in to follow this  
morrisjohnny

Apache Mod Rewrite

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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...