Forum Moderators: phranque
RewriteEngine On
Allow all These two lines have nothing to do with each other. Yes, if you’re using mod_rewrite you have to include the line "RewriteEngine on" somewhere in htaccess (by human logic, before all RewriteRules, but the server doesn't care). RewriteRule ^xemail$ would be RewriteRule ^(xemail)$ for my rules to work. because the virtual directory name is within parenthesesDo you mean that the directory name, as referenced in URLs or in site-internal processes, is the literal string
The script is rather old so maybe there have been changed in how htaccess files are written?
Allow all
there is no directory or file named xemail, in fact the only place it's used is in the linksThat’s perfectly fine. When mod_rewrite gets to work on a request, it doesn’t know and doesn’t care whether the URL in question actually exists or not (unless you throw in a server-intensive RewriteCond using -d or -f). It works on requests, not on physical files. So if a link leads to a request for "xemail", that's what mod_rewrite uses as its pattern.