Forum Moderators: phranque
But I need to exclude /wordpress/ from this redirect. Can I do this without going into mod rewrite (which I have no experience of)? Could I create a more complex reg expression to filter out the wordpress folder?
Any help appreciated since wordpress is crippled by the redirect.
But the situation may be more complex than I thought. Wordpress has no html calls, it's all php. So I don't know why my Redirect is messing it up. But when I take that line out of my .htaccess file, wordpress works fine.
I'm a newbie at .htaccess, so apologies if I am missing the obvious.
You might consider using the "Live HTTP Headers" extension for Firefox, and watching as it fetches a WP page -- just to verify that there are no HTTP requests as a result of WP page loads.
Jim
My site used to be html but I switched to php so have the same standard htaccess
RedirectMatch 301 (.*)\.html$ [mysite.com$1.php...]
It turns out my host has a nice free stats program built in but it is all html and cannot be chaged
so an easy way around this is to simply exclude the stats directory but after a big Internet search cannot find out how to do it
it has to be a snap to do as seem to me would be a very common situation
only need some change in this first part
RedirectMatch 301 (.*)\.html$
so it says to exclude /stats/
any help appreciated
For more information, see the documents cited in our forum charter [webmasterworld.com] and the tutorials in the Apache forum section of the WebmasterWorld library [webmasterworld.com].
Jim
I looked at the huge manual but found no simple way to just tell it to apply rules to everything except on directory - sounds really like a simple thing but no one seems to know the answer