I have folder admin
And I have changed url from admin
to admin-cdn
with below rule
RewriteRule ^admin-cdn/?(.*)$ admin/$1 [L]
Now I can access admin folder’s files with both www.domain.com/admin/
and www.domain.com/admin-cdn/
url
I want show 404 error when user what to access with www.domain.com/admin
path
How can do this in .htaccess file
2
Answers
Try this
You can do it like this: