Forum Moderators: phranque
Use of the [R] flag causes a HTTP redirect to be issued to the browser. If a fully-qualified URL is specified (that is, including [servername...] then a redirect will be issued to that location. Otherwise, the current protocol, servername, and port number will be used to generate the URL sent with the redirect.
Put a blank line after each Rule.
Otherwise, the current protocol, servername, and port number will be used to generate the URL sent with the redirect.
Use of the [R] flag causes a HTTP redirect to be issued to the browser. If a fully-qualified URL is specified (that is, including [servername...] then a redirect will be issued to that location. Otherwise, the current protocol, servername, and port number will be used to generate the URL sent with the redirect.
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /redirect\.php\?one=(\w+)(?:&two=(\w+)(?:&three=(\w+)(?:&four=(\w+)(?:&five=(\w+))?)?)?)?\ HTTP/
RewriteRule ^redirect\.php$ /redirected/%1/%2/%3/%4/%5? [R=301,L]
RewriteRule ^redirected/(\w+)(?:/(\w+)(?:/(\w+)(?:/(\w+)(?:/(\w+))?)?)?)?/?$ /redirect.php?one=$1&two=$2&three=$3&four=$4&five=$5 [L]
I am wondering if this issue is merely a cosmetic alteration to the address bar
(?:/(\w+)(?:/(\w+)(?:/(\w+)(?:/(\w+))?)?)?)?/?