Welcome Guest, Not a member yet? Register   Sign In
.htaccess redirection
#1

[eluser]Unknown[/eluser]
Hi,

I want to change the url www.mysite.com/admin to www.mysite.com/backend

But I do not wish to change the admin folder name .

I have used the following htaccess

RewriteRule ^(*)admin$ /404.html #simple page which shows you are at wrong place

RewriteRule ^backend$ admin/login.php #to prevent intruders.

I want to change "admin" to "backend" only if admin is at the tail end of the url.

I DO NOT wish to change it in urls like www.mysite.com/admin/category

Please help..




Theme © iAndrew 2016 - Forum software by © MyBB