Solved

wordpress mu main blog page links not working

Posted on 2009-07-09
5
541 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
This article discusses how to create an extensible mechanism for linked drop downs.
The purpose of this video is to demonstrate how to reset a WordPress password if you are locked out and cannot reset the password. A typical use would be if you cannot access the email to which WordPress would send the password recovery email to…
The purpose of this video is to demonstrate how to Import and export files in WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Click on Too…

746 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now