I’ve tried quite a few different .htaccess files I’ve found while looking for an answer for this for the past couple of hours.
This works: http://expressionengine.chasin-tails.ca/index.php/pages/reservations
This doesn’t: http://expressionengine.chasin-tails.ca/pages/reservations
This doesn’t: http://expressionengine.chasin-tails.ca/reservations
I’ve verified that I’ve got mod_rewrite loaded via the phpinfo utility. Fundamentally, I don’t really understand what’s happening the .htaccess file in order to start troubleshooting it.
Here’s my current file. It’s located in the public html directory alongside the images, system and themes directories.
Options +FollowSymLinks
DirectoryIndex index.php
<IfModule mod_rewrite>
RewriteEngine On
# Removes index.php
RewriteCond %{THE_REQUEST} !^POST
RewriteRule ^site/?(.*)$ /$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?/$1 [L]
# If 404s, "No Input File" or every URL returns the same thing
# make it /index.php?/$1 above (add the question mark)
</IfModule>I’ve tried it with and without the question mark in the RewriteRule line.
I would be grateful for any assistance and explanation anyone might be able to provide. I would love to get to the point where I really understand what’s happening when the Rewrite happens. Thanks!