Post by Skyhigh » Tue Sep 06, 2011 3:43 am

I've installed wordpress in a subdirectory of my OC site called "/articles".

It all works fine, as long as you keep the index.php on the end of the URL.
As soon as you take it off, something in the HTACCESS or OC kicks in and creates a redirect loop (it seems).

So:
http://www.mysite.com/articles/index.php = wordpress home page,
http://www.mysite.com/articles = server redirection error
http://www.mysite.com/articles/ = server redirection error

I've had a poke around with the .htaccess in the main root of the site for over an hour to try and add a Rewrite Condition which says "don't bother re-writing the /articles directory" - but no luck!


Any suggestions appreciated :)

*I really want to avoid having to hack the OC Seo rewrite php module. It looks like a htaccess issue to me..

LoveMoissanite.com - Moissanite Rings - Proudly Powered by Opencart
[How To] Speed Up Page Content with Opencart - Opencart advocate since 2009


New member

Posts

Joined
Fri Sep 11, 2009 8:12 pm

Post by Skyhigh » Tue Sep 06, 2011 3:48 am

Typical, minutes after posting - I find the answer.

It was so simple too, I've overlooked it to many times.

Code: Select all

# Stop any rewrites of the /articles subdir
RewriteRule ^articles/.*$ - [PT]

Fixed :D

LoveMoissanite.com - Moissanite Rings - Proudly Powered by Opencart
[How To] Speed Up Page Content with Opencart - Opencart advocate since 2009


New member

Posts

Joined
Fri Sep 11, 2009 8:12 pm
Who is online

Users browsing this forum: No registered users and 3 guests