I have:
RewriteRule ^large.php http://www.mysite.com/ [L,R=301]
It works.
But if it looks like large.php?something=blah it won't 301.
I tried ^large.php$ and it didn't work. also Tried ^large.php.*$
Anyone have any ideas?
-Todd
I have:
RewriteRule ^large.php http://www.mysite.com/ [L,R=301]
It works.
But if it looks like large.php?something=blah it won't 301.
I tried ^large.php$ and it didn't work. also Tried ^large.php.*$
Anyone have any ideas?
-Todd
It should read:
RewriteRule ^large.php http://www.mysite.com/ [R=301,QSA,L]
Ken Barbalace - EnvironmentalChemistry.com (Environmental Careers, Blog)
InternetSAR.org: Volunteers Assisting Search and Rescue via the Internet
My Firefox Theme Classic Compact: Based onFirefox's classic theme but uses much less window space
What you have should work. Are there any other rules that might be messing it up?
________
TOYOTA PZ ENGINE SPECIFICATIONS
Last edited by rpanella; 03-17-2011 at 11:03 AM.
Do you have the following instruction in your .htaccess file?
RewriteEngine on
The QSA is required to append any querystrings to a request.
Here are some real rewrite instructions I use in my .htaccess file:
Code:RewriteRule ^(actinium|ACTINIUM|Actinium)(.*) /yogi/periodic/Ac.html [R=301,L] RewriteRule ^blog/(.*)?$ http://blog.environmentalchemistry.com/$1 [R=301,QSA,L] RewriteRule ^links/srad(.[0-9]+)mrurl/bak/(.*) http://banners.aftrk.com/$2 [R=301,QSA,L]
Ken Barbalace - EnvironmentalChemistry.com (Environmental Careers, Blog)
InternetSAR.org: Volunteers Assisting Search and Rescue via the Internet
My Firefox Theme Classic Compact: Based onFirefox's classic theme but uses much less window space
Bookmarks