T
tommytx
Is there any capability of decisions in htaccess. I know you can use
[or] in special situations, but I need something like:
If a then b etc like in php.
In other words I want to redirect the visitor to one of many pages via
the htaccess file.
Is there anyway to open a file and have a redirect to a different web
page based on an input from a text file as below:
Open file and make a random selection from a large number .htm files
and append it to the RewriteRule below.
The below entries may be in a text file.
*******************************************
miami-real-estate.htm
dade-real-estate.htm
charlotte-real-estate.htm
pensacola-real-estate.htm
richmond-real-estate.htm
jersey-real-estate.htm
I need to put the random selection in a variable like $var then append
it to the Rewrite Rule below.
**********************************************************
RewriteRule happy http://www.othersite.com/$var
**********************************************************
Bottom line is I want to redirect each arriving user to a different web
page each time someone arrives with the word happy in the URL.
Thanks in advance.
[or] in special situations, but I need something like:
If a then b etc like in php.
In other words I want to redirect the visitor to one of many pages via
the htaccess file.
Is there anyway to open a file and have a redirect to a different web
page based on an input from a text file as below:
Open file and make a random selection from a large number .htm files
and append it to the RewriteRule below.
The below entries may be in a text file.
*******************************************
miami-real-estate.htm
dade-real-estate.htm
charlotte-real-estate.htm
pensacola-real-estate.htm
richmond-real-estate.htm
jersey-real-estate.htm
I need to put the random selection in a variable like $var then append
it to the Rewrite Rule below.
**********************************************************
RewriteRule happy http://www.othersite.com/$var
**********************************************************
Bottom line is I want to redirect each arriving user to a different web
page each time someone arrives with the word happy in the URL.
Thanks in advance.