forced redirect with mod_rewrite in htaccess?
I'm not quite sure how to proceed with a tracking script which uses a mod_rewrite with htaccess.
For each link I want to track, the script gives me a URL like www.mydomain.com/recommends/XXX.
The paths and directories are set up ok, mod_rewrite is enabled. The htaccess-code which came with the script is as follows:
RewriteEngine on RewriteBase /recommends RewriteRule ^/?(.*) /go/go.php/$1 [QSA]
By trial and error, I found that when I change the last line to
RewriteRule ^/?(.*) /go/go.php/$1 [R,QSA]
Now, what I don't understand:
- Why do I have to enforce the redirect with the additional "R"?
- If I add "R", although the programmer originally hadn't included it, could I run into any trouble?
- Should I use "R=301" (permanently moved) or "R=302" (temporarily moved) for a tracking script? I only want to get some data about which adds convert better than others...
- Oh, and should I include an L tag at the end of the last line, too?
Any help appreciated,
milkyway
-
munkyscripts -
[ 1 ] Thanks - 1 reply
SignatureWordpress Toplist Wordpress CSV Parser Free Web Templates Premium templates{{ DiscussionBoard.errors[1312796].message }}-
milkyway -
Thanks
{{ DiscussionBoard.errors[1313181].message }} -
-