I have this link:
<a href="admin.php?page=buyingreport">Buying Report</a>
To get a pretty URL, I've changed it to:
<a href="admin/buyingreport">Buying Report</a>
And this is my whole .htaccess:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^mysite [nC]
RewriteRule ^/?$ "http\:\/\/www\.mysite\.com\/" [R=301,nC]
RewriteRule ^([^/.]+)$ $1.php [L]
RewriteRule ^admin/([a-z]+)$ admin.php?page=$1 [L]
I always get 404 Not Found error "The requested URL /admin/buyingreport.php was not found on this server". Why was it redirect me to buyingreport.php?
The .htaccess file doesn't seem to work. Is there anything wrong with it? Or maybe with my link?
Anybody can help me, please?