Welcome Guest, Not a member yet? Register   Sign In
help with htaccess
#1

[eluser]sixpack434[/eluser]
Everything was working fine until yesterday our hosting providers decided to upgrade to apache 2 which comes with Mod_FCGI over normal CGI. As a result, the htaccess isn't working anymore, so I'll need to include the index.php in the urls for the pages to work.

The guy from the hosting provider said

Quote:Hello, We have upgraded to Apache 2 which comes with Mod_FCGI over normal CGI. This was done as part of the normal security upgrades. You will need to talk with your developers about correcting the .htaccess file. We are unable to give you support for this.

We could try your account on a SuPHP server over a FCGI server if you wish BUT this might not help. I would suggest correcting the .htaccess file. I did find this help file on google: http://www.askapache.com/htaccess/ultima...ample.html Regards,

My htaccess code was the below but is not working anymore
Code:
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>

<IfModule !mod_rewrite.c>
    # If we don't have mod_rewrite installed, all 404's
    # can be sent to index.php, and everything works as normal.
    # Submitted by: ElliotHaughin

    ErrorDocument 404 /index.php
</IfModule>

I tried changing to the following but it didn't help
Code:
<IfModule mod_rewrite.c>
    RewriteEngine On
Options +FollowSymLinks +ExecCGI +Includes
AddHandler fcgid-script .fcgi
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php/$1 [L]
    RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
</IfModule>

<IfModule !mod_rewrite.c>
    # If we don't have mod_rewrite installed, all 404's
    # can be sent to index.php, and everything works as normal.
    # Submitted by: ElliotHaughin

    ErrorDocument 404 /index.php
</IfModule>
any ideas on how I could get this working??

Thanks in advance


Messages In This Thread
help with htaccess - by El Forum - 08-09-2008, 06:06 PM
help with htaccess - by El Forum - 08-09-2008, 10:05 PM
help with htaccess - by El Forum - 08-10-2008, 04:16 AM



Theme © iAndrew 2016 - Forum software by © MyBB