[FX.php List] [Off] Help with .htaccess RewriteRule or Redirect
Troy Meyers
tcmeyers at troymeyers.com
Sat Mar 22 06:05:27 MDT 2008
Success!
Roger,
I reread the 1.3 docs, and between them and what you showed me I think I cracked the nut.
It turns out that the thing that works is creating a /flasking directory at www.troymeyers.com, and in it putting just the .htaccess file containing:
# this file is /flasking/.htaccess
RewriteEngine On
RewriteBase /flasking
RewriteRule ^(.*) http://lab.troymeyers.com/flasking/$1
It really works. You can try by using this URL as a test:
http://www.troymeyers.com/flasking/priceincrease.php?a=ZJNQWGCV
As you can see (at least I hope it works externally!) this gets changed to:
http://lab.troymeyers.com/flasking/priceincrease.php?a=ZJNQWGCV
...which then comes off of our in-house server instead of Speakeasy.
...and a similar thing happens for any URL that starts with www.troymeyers.com/flasking which is just what I wanted.
Thank you all for your help! If anyone sees any trouble with this, please let me know.
One last question... what permissions should I use for this .htaccess file? I set it at 664, but that was just a guess.
-Troy
More information about the FX.php_List
mailing list