Thread: mod_rewrite
View Single Post
Old January 8th, 2008, 8:44 AM   #5 (permalink)
cowboy
Surpass Fan
Excelling Contributor
 
cowboy's Avatar
 
Joined in Nov 2005
Lives in Colorado
Hosted on DEDI
934 posts
Gave thanks: 2
Thanked 94 times
Quote:
Originally Posted by uwwandrew View Post
... I put the following code in my htaccess file to test:

RewriteEngine On
Options +FollowSymLinks
Redirect /test.html http://www.google.com

...
Should be:

Code:
RewriteRule test.html http://www.google.com
for any test.html file in any subsequent directory with or without any GET string, or,

Code:
RewriteRule ^test.html?$ http://www.google.com [NC]
to limit to domain/test.html or domain/test.htm only; caps or lowercase.
__________________
Where would you be if you were at the highest court in the land (US)?
cowboy is offline   Reply With Quote