开发者

Problem in apache2 with mod rewrite when setting rules in .conf files instead of .htaccess

开发者 https://www.devze.com 2022-12-25 07:11 出处:网络
Because of weird security policies of my hosting provider I have to define my rewrite rules in /etc/apache2/conf.d/examplesite.conf instead of wri开发者_开发问答ting them on an .htaccess on the www fo

Because of weird security policies of my hosting provider I have to define my rewrite rules in /etc/apache2/conf.d/examplesite.conf instead of wri开发者_开发问答ting them on an .htaccess on the www folder of that site.

What I'm trying to do is setup a Wordpress Mu server (http://mu.wordpress.org/forums/topic/17349 ) and so far its working on a 50%.

The main blog loads perfectly but other sub blogs (located for example at www.example.com/blog2 ) don't.

I'm guessing the problem is that the rewrite rules behave differently when declared at .conf files for each virtual host instead of using .htaccess files.

Has anybody else had this problem? How can you fix it?


This doesn't sound like a rewrite problem to me but maybe it is. You don't say what the error is when you try to load one of the sub blogs. Perhaps posting up what your rewrite rule is would be helpful. Also would you be able to set up a scenario where you did them in .htaccess files on a localhost or something and seeing if there was a difference?


If pretty permalinks work, then mod_rewrite is enabled, and rewriting URLs to WordPress successfully.

If this is the case, then it's a problem with your MU install.

Did you choose paths over sub-domains during the MU install? If you didn't, but then later switched, that's where the problem is - are you in a position to fresh install?

0

精彩评论

暂无评论...
验证码 换一张
取 消