There is a Error that I am Getting, Please Check it Out!
The Original Link is:- http://localhost/gaming-web/account/login
But when User Goes to:- http://localhost/gaming-web/account/login/bla-bla-bla, It is still showing that Page without Going to 404 ErrorDocument!
How do I Fix this!!
Here is my .htaccess File Code:-
Options +MultiViews
RewriteEngine on
# Setting the Rewrite Base
RewriteBase /gaming-web/
# For test.php File
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^test/([0-9]+)/([0-9a-zA-Z_-]+)(/.*)?$ test.php?id=$1&name=$2 [NC,L]
RewriteRule ^test/([0-9]+)(/.*)?$ test.php?id=$1 [NC,L]
RewriteRule ^test test.php [NC,L]
# Account Directory
# Run Php without filename extension
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^account/(.*)$ account/$1.php
# Return 404 if original request is .php
RewriteCond %{THE_REQUEST} "^[^ ]* .*?\.php[? ].*$"
RewriteRule !^ErrorDocuments/404.php - [R=404,L]
# Error Document
ErrorDocument 404 /gaming-web/ErrorDocuments/404.php
Aucun commentaire:
Enregistrer un commentaire