I have been
having trouble
with mod
rewrite for
ages.
I have a sub
directory in
the root
directory
called admin
and in the
admin directory
i have an
index.php page.
The trouble I'm
having is when
i use
www.mydomain.co
m/admin/ it's
not displaying
the index page
within the
admin directory
but the index
page within the
root directory.
Any ideas why
it's doing
this?
Code:
Options
+FollowSymLinks
RewriteEngine
on
RewriteBase /
RewriteRule
^([A-Za-z0-9\-_
]+)/?$
index.php?page=
$1
RewriteRule
^gallery/([A-Za
-z0-9\-_]+)/([0
-9]+)/?$
index.php?page=
$1&id=$2
RewriteRule
^([A-Za-z0-9]+)
/([0-9\-_]+)/?$
index.php?page=
$1&pagenum=
$2
RewriteRule
^admin/([A-Za-z
0-9\-_]+)/?$
admin/index.php
?page=$1 [L]
Edited at 11:04:48 pm on 11/21/06
|