About. the problem with the regular expression in htaccess is. this RewriteRule & nbsp; ^ ([A-Za-z] +) ($) & nbsp; movieindex is written in htaccess. php? The effect achieved by entrance $1 is: www. ydutv. comDongzuopian & nbsp; enter the page www. ydutv about the regular expression in. htaccess.
In. htaccess
Write this sentence
RewriteRule ^ ([A-Za-z] +)/($) movie/index. php? Entrance = $1
The result is as follows:
Http://www.ydutv.com/Dongzuopian/ go to a page
Http://www.ydutv.com/Kongbupian/ go to a page
However, I want
When http://www.ydutv.com/search/, do not enter a page, but enter B page.
So I think it should be in RewriteRule ^ ([A-Za-z] +)/($) movie/index. php? Entrance = $1 what should I do if I exclude "search" in the red section? What if I want to exclude more than "search", such as adding an exclusion "play?
Share:
------ Solution --------------------
You can simply write the search statement in the first line.
The remaining two are written later.