[thelist] htaccess quandry

patrick pms at stoutstreet.com
Tue Jul 10 09:01:57 CDT 2007


Tom Dell'Aringa wrote:
> Hey everyone,
> 
> I've been banging my head up against this .htaccess for months trying to
> figure out these 301s for my drupal site. Each time I come back to it, I
> fail. It can't be this hard, but I can't seem to get anything to work.
> 
> Here is my current htaccess:
> 
> http://www.crossandthrone.com/ht.txt
> 
> I'm trying to redirect 2 of some 20-30 old paths at the bottom like so:
> 
> Redirect 301 /feed http://feeds.feedburner.com/CrossAndThrone
> Redirect 301 /category/radio http://www.crossandthrone.com/radio-wyll-1160-am
> 
> The problem is when I enter the old string for category/radio I get this:
> 
> http://www.crossandthrone.com/radio-wyll-1160-a?q=category/radio
> 
> note the query string at the end? This still ends up giving a
> 404 of course. I think if I could get it to not do that, I could
> correctly redirect all the bad links. I've tried the 301 in different
> spots but it doesn't seem to matter. Why doesn't the site just follow
> the directive I'm putting in?
> 
> Any help is appreciated!
> 
> Thanks
> 
> Tom


You don't seem to have a RewriteBase set. Try
	RewriteBase /
as first Rewrite item after
	RewriteEngine On


-- 

patrick sanders
http://www.stoutstreet.com
web sites that fit



More information about the thelist mailing list