Hi Everyone, I am having a bit of a mare trying to get my htaccess file working the way I would like it too.
I am trying to redirect the index.php
from websitename/directory/index.php
to websitename/directory/
I have tried the following rewrites but nothing seems to be working, Hope someone can point out what or where I am going wrong.
Thanks in advance.
Here is what I have in my htaccess file.
# Enable Rewriting
# RewriteEngine on
# Symlinks
Options +FollowSymlinks
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /shop-product.php?pid=$1 [QSA,L]
#Force Root Redirect
#RewriteEngine On
#RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php
#RewriteRule ^index\.php$ / [L,R=301]
#RewriteEngine On
#RewriteRule ^index\.html$ / [R=301,L]
#RewriteRule ^(.*)/index\.html$ /$1/ [R=301,L]
#force Root index redirect
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?/$1 [L]