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.

.htaccess / 404 issue nightmare

June 05, 2012 2:01am

Subscribe [3]
  • #1 / Jun 05, 2012 2:01am

    Bradmac

    12 posts

    Hello,

    I have removed the index.php from my site using the LG .htaccess Generator (v.1.0.0).
    My site is currently running EE 1.6.9 Build:  20100430.

    Previously the .htaccess file was working fine without problems.
    The next day, all of the internal links would point to the homepage or spit out 404 errors.

    The main template group is “site” (I know, original). The index template in this group is checked as the site’s home page.


    Previously, (http://www.mydomain.com) worked fine as the homepage and relevant URLs such as http://www.mdomain.com/pizza, www.mydomain.com/beer, etc., when ‘pizza’ and ‘beer’ were template pages.

    Now the pages will only work with http://www.mdomain.com/site/pizza, www.mydomain.com/site/beer added to the URL.

    Also, following template groups worked…say I had a template group called ‘pepperoni’. The URL http://www.mydomain.com/pepperoni/pizza works fine still?

    I am using the include method for index.php removal.

    RewriteCond $1 !\.(gif|jpe?g|png)$ [NC]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /index.php?$1 [L]


    Any reason why this would just quit working suddenly? Apache upgrade at hosting company?
    Is there any way I can remove the ‘site’ from the URL again?

    Thank you

  • #2 / Jun 05, 2012 7:15am

    silenz

    1651 posts

    Did anyone enable Strict URLs in Global Template Preferences?

  • #3 / Jun 05, 2012 2:32pm

    Bradmac

    12 posts

    @silenz,

    No. I even checked clicking that on and off. On only adds a “?” in the URL as well.

  • #4 / Jun 06, 2012 10:59am

    Shane Eckert

    7174 posts

    Hi Bradmac,

    I think you are right, something on the server has changed.

    Can you check with your hosting provider and see if they have updated anything?

    You might also check with the Add-On developer.

    Thank you,

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

ExpressionEngine News!

#eecms, #events, #releases