Wednesday, March 2, 2011

.htaccess + Django issues

Hi all,

Pardon me if this is the wrong list for the issue I have.

I have a .htaccess file containing the following lines:

AddType text/x-component .htc
RewriteEngine On
RewriteBase /

RewriteCond %{QUERY_STRING} .

RewriteRule ^(.*)\.php(.*)$ http://www.mydomain/forum/? [R=301,L]
RewriteRule ^forum/(.*)$ /forum/$1 [R=301,L]
RewriteRule ^blog/(.*)$ /blog/$1 [R=301,L]

I then have the following URLs:

·         http://www.mydomain/forum/calendar.php?c=1&week=1301788800

·         http://www.mydomain/forum/strategy-and-coaching/coaching-analysis/

·         http://www.mydomain/blog/joining-coaching-sessions/


The first two URLs are 301 redirected as expected, but the last one is not. What could I be getting wrong here?
--
Regards,
Sithembewena Lloyd Dube

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate