Hey guys...

I have some code im using in a sub directory called /manager/ and I have the following htaccess file

RewriteEngine on
RewriteOptions inherit 
RewriteBase /

RewriteCond %{REQUEST_FILENAME} -f [NC,OR]
RewriteCond %{REQUEST_FILENAME} -d [NC]
RewriteRule .* - [L]

Options +Indexes
IndexOptions +FancyIndexing

#Rules for root 
RewriteRule ^$ /index.php

RewriteRule ^([^/.]*)$ $1/ [R]
RewriteRule ^([^/.]*)/$ index.php?page=$1 [QSA]

#For news slugs eg /readmore/id/
RewriteRule ^([^/.]*)/([^/.]*)$ $1/$2/ [R]
RewriteRule ^([^/.]*)/([^/.]*)/$ index.php?page=$1&nID=$2 [QSA]

However its not working it just goes back to the root....
How do I fix this problem??

Dan

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.