The following rewrites the line starting at number 4 as the process.php variable:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(4[^/]*)$ /process.php?variable=$1 [L]
So this is
http:
displayed on
http:
But I want to extend this last rewrite rule to basically indicate:
if word begins with 4, map to /process.php?variable=$1
else map to /index.php
The second (yet) part of this statement is the basic rule of rewriting WordPress. For example:
http:
which does not have 4, will be directed to
http://www.domain.com/index.php?shopping (I believe this is how WordPress permalinks work!)
Paul source
share