Solved

wordpress mu main blog page links not working

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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Fulfillment API php code sample 1 41
I wonder how people fake their ip address? 3 39
Number of hours between date in DB and now 8 18
PHP Query return divisible by 3 3 17
These days socially coordinated efforts have turned into a critical requirement for enterprises.
This article discusses how to create an extensible mechanism for linked drop downs.
The purpose of this video is to demonstrate how to add AdSense Ads to a WordPress Website, and how to set up WordPress to automatically place Ads in Sidebars. This will be demonstrated using a Windows 8 PC. Log into your AdSense account. : Cli…
The purpose of this video is to demonstrate how to set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…

809 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