[thelist] htaccess quandry

Barry Woolgar barry at burnthebook.co.uk
Tue Jul 10 09:05:58 CDT 2007


Hello

Just above your redirects there is this line:

RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

Try commenting it out, as that QSA appends the query string. I don't know if
it performs a function for the rest of your site however so please test it
first...

Barry

-----Original Message-----
From: thelist-bounces at lists.evolt.org
[mailto:thelist-bounces at lists.evolt.org] On Behalf Of Tom Dell'Aringa
Sent: 10 July 2007 14:57
To: thelist
Subject: [thelist] htaccess quandry

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
-- 

* * Please support the community that supports you.  * *
http://evolt.org/help_support_evolt/

For unsubscribe and other options, including the Tip Harvester 
and archives of thelist go to: http://lists.evolt.org 
Workers of the Web, evolt ! 





More information about the thelist mailing list