Solved

wordpress mu main blog page links not working

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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Suggested Solutions

Read about how to approach blogging and about ways to do it right. Stand out from the crowd and let your knowledge be consumed by a large audience. This article aims to explain how your blog should look like,  the most important things to do while b…
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
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

739 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