DannyTip
10-16-2006, 05:37 AM
I currently have the following in my .htaccess file and its working fine for my main site...
RewriteRule ^([^/\.]+)/?$ /index.php?p=$1 [L]
RewriteRule ^([^/\.]+)/([^/\.]+)/?$ /index.php?p=$1&lang=$2 [L]
RewriteRule ^([^/\.]+)/([^/\.]+)/([^/\.]+)/?$ /index.php?p=$1&lang=$2&id=$3 [L]
But i need a set of different rules for /admin/ and /client/ as they are different files to the main index.php. How would i implement such a thing?
Ive tried adding the following above the code above but no joy..
RewriteRule ^(admin)/?$ /admin/index.php [L]
RewriteRule ^(admin)/([^/\.]+)/?$ /admin/index.php?p=$1 [L]
RewriteRule ^([^/\.]+)/?$ /index.php?p=$1 [L]
RewriteRule ^([^/\.]+)/([^/\.]+)/?$ /index.php?p=$1&lang=$2 [L]
RewriteRule ^([^/\.]+)/([^/\.]+)/([^/\.]+)/?$ /index.php?p=$1&lang=$2&id=$3 [L]
But i need a set of different rules for /admin/ and /client/ as they are different files to the main index.php. How would i implement such a thing?
Ive tried adding the following above the code above but no joy..
RewriteRule ^(admin)/?$ /admin/index.php [L]
RewriteRule ^(admin)/([^/\.]+)/?$ /admin/index.php?p=$1 [L]
