We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

renamed index.php not working

How Do I?

fensterbaby's avatar
fensterbaby
289 posts
10 years ago
fensterbaby's avatar fensterbaby

I just moved a site to a new server.

In General Config the site index page is set to: rafting

.htaccess contains the following…

<Files rafting> ForceType application/x-httpd-php </Files>

DirectoryIndex rafting

The index file is indeed named rafting

Should be working and it was on old server but now I get 404 errors.

– Following is full .htaccess file –

#

Note: Do not use www redirect, it breaks the contact form

#
#

EE Stuff

#

<Files rafting> ForceType application/x-httpd-php </Files>

DirectoryIndex rafting

#

Caching

#

Header unset Pragma FileETag None Header unset ETag

1 Year

<FilesMatch “.(jpg|jpeg|png|gif|swf|flv|ico)$”> Header set Cache-Control “max-age=31556926, public” </FilesMatch>

1 Month

<FilesMatch “.(js|css)$”> Header set Cache-Control “max-age=2629743, public” </FilesMatch>

No Caching

<FilesMatch “.(html|htm|txt|php)$”> Header set Cache-Control “max-age=7200, must-revalidate” </FilesMatch>

#

Compression

#

<IfModule mod_deflate.c> AddOutputFilterByType DEFLATE text/html text/xml text/css text/plain AddOutputFilterByType DEFLATE image/svg+xml application/xhtml+xml application/xml AddOutputFilterByType DEFLATE application/rdf+xml application/rss+xml application/atom+xml AddOutputFilterByType DEFLATE text/javascript application/javascript application/x-javascript AddOutputFilterByType DEFLATE application/x-font-ttf application/x-font-otf AddOutputFilterByType DEFLATE font/truetype font/opentype </IfModule>

#

Options

#

<Files index> AcceptPathInfo on SetOutputFilter PHP SetInputFilter PHP </Files>

#

Rewrites

#

<IfModule mod_rewrite.c> RewriteEngine On RewriteBase /

RewriteCond %{HTTP_HOST} !^www.novalaska.com$

RewriteRule ^(.*)$ http://www.novalaska.com/$1 [R=301,L]

Remove trailing slashes

RewriteRule ^(.)\/(\?.)?$ $1$2 [R=301,L]

Remove testimonial page query string

RewriteCond %{REQUEST_URI} ^/rafting/testimonials RewriteCond %{QUERY_STRING} ^testimonials.htm$ RewriteRule (.*) $1? [R=301]

</IfModule>

       
airways's avatar
airways
154 posts
10 years ago
airways's avatar airways

mod_rewrite may be disabled, remove the conditional IfModule tags from around your Rewrite* rules to see if it causes a 500 error. If so, then mod_rewrite is disabled and you should speak to your hosting provider about turning it on.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.