Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

wordpress mu main blog page links not working

Posted on 2009-07-09
5
Medium Priority
?
551 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 35

Expert Comment

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

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 35

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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

This article discusses four methods for overlaying images in a container on a web page
This article shows the steps required to install WordPress on Azure. Web Apps, Mobile Apps, API Apps, or Functions, in Azure all these run in an App Service plan. WordPress is no exception and requires an App Service Plan and Database to install
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 integrate Mailchimp with Facebook. This will be demonstrated using a Windows 8 PC. Mailchimp and Facebook will be used. Log into your Mailchimp account. : Click on your name. Go to Account Setti…

722 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