.htaccess using escape quotes
问题 I have this .htaccess: RewriteRule ^(aa.bbb|aaa,bbb|aaa-bbb|aaa_bbb||)/(.*)$ /index.html [L,NC] Will it be fine as above or should it be with espae quotes. I know in javascript is often \ in use. Like below: RewriteRule ^(aa\.bbb|aaa,bbb|aaa-bbb|aaa_bbb)/(.*)$ /index.html [L,NC] I need it for - _ , . all four of them. Do I need \ or some other sign in .htaccess and what is it. 回答1: From your rules only dot needs to be escaped (since that is special regex character) Two || should be removed