I want setup an administration panel in my project in cp directory. But I can not go to it after using htaccess and mod_rewrite. Below is my code:
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([A-Za-z0-9-]+)?$ ./index.php?p=$1 [NC,N]
RewriteRule ^([A-Za-z0-9-]+)/?$ ./index.php?p=$1 [NC,F]
I get 403 forbidden access when the URL is http://localhost/project/cp
What do I have to do ?
I could find a useful answer for my question and it worked for me.