ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

404 issue

April 04, 2011 3:21pm

Subscribe [2]
  • #1 / Apr 04, 2011 3:21pm

    Bell Design

    42 posts

    I just setup a small website using ee1.7 and it works great.
    I created a 404 page for the urls have changed.

    I created a template called “404”; placed simple html code within it.
    Went to “Template Preferences” and pointed the 404 page to the 404 template.

    When I go to the site, only the homepage shows its content.
    The other pages show the 404 page I created.
    If I point the 404 page under “Template Preferences” to none, they show back up.

    This is my .htaccess file:

    RewriteEngine on
    RewriteCond %{QUERY_STRING} ^(css=.*)$ [NC]
    RewriteRule ^(.*)$ /index.php?/%1 [L]
    RewriteCond $1 !^(images|system|themes|favicon\.ico|index\.php?) [NC]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /index.php?/$1 [L]

    I am removing the index.php and the site is hosted on Godaddy.
    I don’t need to Force URL query strings since I am using a direct url.

    I have this same setup on another small ee site that uses 1.7 on a Godaddy server with a 404 template, the same .htaccess file, not forcing url query strings and it works just fine.

    So not sure what is happening, any ideas?

    Thanks

  • #2 / Apr 05, 2011 6:36am

    John Henry Donovan

    12339 posts

    Bell Design,

    Can you test first by disabling the htaccess and reinstating index.php in your General Configuration
    If this works then it is your htaccess causing the issue and you can concentrate on that

    You also have this rule twice

    RewriteRule ^(.*)$ /index.php?/$1 [L]
  • #3 / Apr 19, 2011 12:52pm

    Bell Design

    42 posts

    Mr. Donovan, sorry for the delay in getting back to you.

    But yes the

    RewriteRule ^(.*)$ /index.php?/$1 [L]

    is there twice due to it being on a Godaddy server (yuck I know)

    I am in the process of leaving godaddy as a host all together.

  • #4 / Apr 19, 2011 1:53pm

    Brandon Jones

    5500 posts

    Sounds good, let us know if you’re still having issues after the move.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases