Hi everyone, I'm trying to rewrite a URL (hide file extensions e.g .php, .html) using the rule 2 in my code, but its function has been overwritten by the rule 1. Because when I browse www.mysite.com/login.php it works which was supposed to be www.mysite.com/login, problem of rule 2. On the other hand, when I browse www.mysite.com/login it redirects towww.mysite.com/capture.php instead ofwww.mysite.com/login.php(actually login)its function is from the rule 1 and not from rule 2. The function of rule 1 is to rewrite a permalink: www.mysite.com/username and the rule 2 is to hide file extensions.
Web.config rewrite problems
in Web Servers
Posted
Hi everyone, I'm trying to rewrite a URL (hide file extensions e.g .php, .html) using the rule 2 in my code, but its function has been overwritten by the rule 1. Because when I browse www.mysite.com/login.php it works which was supposed to be www.mysite.com/login, problem of rule 2. On the other hand, when I browse www.mysite.com/login it redirects to www.mysite.com/capture.php instead of www.mysite.com/login.php(actually login) its function is from the rule 1 and not from rule 2. The function of rule 1 is to rewrite a permalink: www.mysite.com/username and the rule 2 is to hide file extensions.