Skip to content

Alternative .htaccess code #76

Closed
Closed
@SamM

Description

@SamM

I'm using Apache version 2.2.24 and for some reason neither of the two snippets of code that you posted to use in my .htaccess were working properly. On another server (Apache 2.2.19) the "FallbackResource /index.php" worked perfectly, but it didn't work well on my server.

Here's the code I found that worked for on my server:

RewriteBase /INSERT/PATH/TO/BASE/DIRECTORY
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index.php)
RewriteRule .* index.php/$0 [L]

Without the RewriteBase all I got was a 404 error ".../index.php/ was not found".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions