Solved

wordpress mu main blog page links not working

Posted on 2009-07-09
5
547 Views
Last Modified: 2012-08-14
Hi, I have configured a wordpress mu blog with sub-folders options here http://www.42rules.com/newbrw/. I have configured 3 author blogs and all author blogs are working fine.

My problem is while access pages of main blog it redirected to the blog url.
If I am giving url like http://www.42rules.com/newbrw/home, it will redirect to the http://www.42rules.com/newbrw

Please check the code of htaccess file below.

RewriteEngine On
RewriteBase /newbrw/
 
#uploaded files
RewriteRule ^(.*/)?files/$ index.php [L]
RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]
 
# add a trailing slash to /wp-admin
RewriteCond %{REQUEST_URI} ^.*/wp-admin$
RewriteRule ^(.+)$ $1/ [R=301,L]
 
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule . - [L]
RewriteRule  ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
RewriteRule  ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]
 
<IfModule mod_security.c>
<Files async-upload.php>
SecFilterEngine Off
SecFilterScanPOST Off
</Files>
</IfModule>

Open in new window

0
Comment
Question by:brickwork
  • 3
  • 2
5 Comments
 
LVL 34

Expert Comment

by:gr8gonzo
ID: 24813163
What are the URLs of your other author blogs?
0
 
LVL 34

Expert Comment

by:gr8gonzo
ID: 24813243
Nevermind - I see them.

My guess would be that there's some code that checks to see if the full URL is a valid author blog, and if not, it tries to "auto-correct" itself. It's probably not the .htaccess file.

So basically, your author URL looks like:
http://42rules.com/newbrw/rob/.../

I'm guessing when you go to:
http://42rules.com/newbr/home/

The PHP is looking to see if there is a valid author blog called "home" and if not, it redirects. It's hard to tell what code has changed without seeing the actual PHP code, but that would be my guess.
0
 

Author Comment

by:brickwork
ID: 24847682
Please read below more clarification reference to the question

main url :   http://www.42rules.com/newbrw
urls of main blog pages :   [ not accessible as url redirect to the blog url - http://42rules.com/newbrw ]
http://www.42rules.com/newbrw /home
http://www.42rules.com/newbrw/contact-us
http://www.42rules.com/newbrw/news

url of post defined under main blog :  [ not accessible as url redirect to the blog url - http://42rules.com/newbrw ]
http://www.42rules.com/newbrw/2009/07/04/hello-world/

Author blogs urls: [ working fine ]
http://42rules.com/newbrw/rob/home/
http://42rules.com/newbrw/leon/home/

following url of post defined for leon blog working fine:
http://42rules.com/newbrw/leon/2009/07/08/hello-world/

0
 

Accepted Solution

by:
brickwork earned 0 total points
ID: 25765167
I had reinstalled blog again and configured from scratch and it is working now. Thanks for your help and suggestion.
0
 
LVL 34

Expert Comment

by:gr8gonzo
ID: 25766406
Glad to hear it's working. I seem to have missed several notifications of comments added - I didn't realize you had said anything after my last comment. Apologies for that.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

With Wordpress gaining more and more popularity not only as blogging platform but as a shopping or CMS solution, it's worth to know which plugins are the first ones to grab and integrate with your website. We will briefly go over the most useful plu…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
The purpose of this video is to demonstrate how to Test the speed of a WordPress Website. Site Speed is an important metric of a site’s health. Slow site speed can result in viewers leaving your site quickly and not seeing your content. This…
The purpose of this video is to demonstrate how to update a WordPress Site’s version. WordPress releases new versions of its software frequently and it is important to update frequently in order to keep your site secure, and to get new WordPress…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question