Msg#: 4187720 posted 2:44 pm on Aug 16, 2010 (gmt 0)
I am doing some shuffling on my site, and for various reasons I have moved a couple directories (and all their subpages) in my directory structure. To be kind to Goog and others, I have tried to run a 301 in Apache, thus:
Msg#: 4187720 posted 8:34 am on Aug 17, 2010 (gmt 0)
The slash must be in there it looks like...
if the rule is used in the server config file (httpd.conf) then the path will contain the leading slash indicating the root directory. if the rule is used in the per-directory config files (.htaccess) then the leading directory path information will be stripped before pattern matching.
Never forget that Pattern is applied to a complete URL in per-server configuration files. However, in per-directory configuration files, the per-directory prefix (which always is the same for a specific directory) is automatically removed for the pattern matching and automatically added after the substitution has been done. This feature is essential for many sorts of rewriting - without this, you would always have to match the parent directory which is not always possible.