Home > front end >  Ask why apache rewrite can't match the last one in the url "/" at the back of the con
Ask why apache rewrite can't match the last one in the url "/" at the back of the con

Time:01-15

I met an apache rewrite the problem, hoping to help:
I hope will be similar to rewrite the address https://www.domain.com/login.action, https://www.domain.com/a/login.action need to redirect the address is the feature of the last part of the url is/login action, changes to the apache configuration file add the following content:

RewriteEngine On
The RewriteCond % {REQUEST_URI} the login. The action
RewriteRule ^ (. *) $https://www.domain.com/login.action

Results are as follows: https://www.domain.com/login.action/a/login.action uri can be redirected, but https://www.domain.com/b/a/login.action, a similar address cannot be redirected, apache look match don't find the content behind the last "/", wish someone would specify a maze,
  • Related