Forum Moderators: phranque
I have a php site that automatically takes paypal payments
to submit a URL to the site (word cloud).
When the .htaccess for the script is run in a sub-folder on
the root domain, it works.
RewriteRule ^buy/(.*)$ buyit.php?word=$1 [L] But when it runs on a sub-domain (which is what I need), it generates
500 server error (mod_rewrite stuff).
So, I need to have the rewrite rule above work for the sub-domain,
and not a sub-folder on the root domain:
WORKS (but not where I need it):
www.thesite.com/sub/sub/ NOT WORKING (but where I need it):
sub-domain.thesite.com/ I hope I'm not too muddy! Can anyone help?
RewriteRule ^buy/ So, ^ is watching for root-of-site, then the variable "buy".
It says, "ok, I see a match here, so I need to rewrite
this according to the next rule...
Adding:
RewriteBase / If I'm wrong, please someone enlighten me, but at least it's working
non-the-less ;)