WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Heading Links from Second Blog Follow to Wrong URL (18 posts)

  1. momodulor
    Member
    Posted 3 years ago #

    Hi All!
    Here is my problem:
    Multisite (subdirectories). I install it to create second blog. Posts' pages are static on both sites.
    When I add a post on the second blog site, real permalink for this post is: site.com/subfolder/post1
    But heading from this post follows to the wrong URL site like this:
    site.com/post1

    How can I fix this problem?

    Thanks in advance!

  2. No idea without any more details.

    link to your site?
    Did you disable plugins?
    Are you *sure* you are logging in to the correct admin area?
    Are you just writing a page normally, no permalink editing?
    Did you check the permalink settings?
    Did you double check the htaccess file?

  3. momodulor
    Member
    Posted 3 years ago #

    I checked all you wrote except htaccess

    here is link to the site:
    main blog is:
    http://bflip.ca/updates/
    permalinks on this site: %postname%

    blog on subfolder site is:
    http://bflip.ca/communitydiscussion/community-discussion/
    permalink here is day and name: /%year%/%monthnum%/%day%/%postname%/

    my htaccess is:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule  ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule  ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]
    </IfModule>
    
    # END WordPress

    thanks

  4. main blog is:
    http://bflip.ca/updates/
    permalinks on this site: %postname%

    blog on subfolder site is:
    http://bflip.ca/communitydiscussion/community-discussion/

    No, your main site is http://bflip.ca/

    What modifications did you do when you set things up? If you removed the /blog/ from the permalinks, you may have some sort of ocllusions going on IF you have made pages on the main blog with the same name as the sub blog (which is http://bflip.ca/communitydiscussion/ )

  5. momodulor
    Member
    Posted 3 years ago #

    sorry, I did not removed /blog/ from my permalink I just did not copy whole structure for main site:
    /blog/%postname%/

    do you still recommend me to change it?

    thanks

  6. momodulor
    Member
    Posted 3 years ago #

    I changed the main blog permalink to default.

    But anyway, on the second blog site (subfolder) I have the post with permalink: http://bflip.ca/communitydiscussion/?p=32 but on blog page this permalink is changed to broken link http://bflip.ca/?p=32 I do not understand how is that possible.
    I installed another subfolder site - the same problem

  7. I installed another subfolder site

    HOW are you "installing" another subfolder site?

    in multisite, you just add another site, no installing anything. I want to verify you're actually using multisite.

    Again, troubleshooting in wordpress means you turn off all your plugins and try again.

  8. You don't have WordPress installed in a folder called updates while you have it 'acting' like it's in the root of your site, right?

  9. momodulor
    Member
    Posted 3 years ago #

    HOW are you "installing" another subfolder site?

    Sorry for terminology... I actually add it

    You don't have WordPress installed in a folder called updates while you have it 'acting' like it's in the root of your site, right?

    WordPress is installed in htdocs/sitename this is not an updates folder

  10. And have you turned off all your plugins?

  11. momodulor
    Member
    Posted 3 years ago #

    Hi,

    1.I deactivated all my plugins
    2.I added new static page for the posts
    3.I created home page for the second blog
    4.I moved to trash all previous posts from second blog then I created new one.

    Result is absolutely the same - broken link to nowhere. (the middle part of the path just disappeared. I mean, the full path to the post is: example.com/subfolder/?p### but after publishing the link follows to example.com/?p### which does not exist)

    What do you think about it?

  12. What are the permalinks set to on the sub blog, and did you try to re-save those?

  13. momodulor
    Member
    Posted 3 years ago #

    permalinks set to default. I reset it to the "Day and name" - same result. I resaved it to default the same thing again... If you can read htaccess (in the beginning of this post) may be in this file something wrong?

    Thanks for quick response!

  14. 2.I added new static page for the posts
    3.I created home page for the second blog

    Why are you doing this? there's no need. I'm not sure what you're trying to accomplish here.

    Delete whatever pages you're creating. Just add a new blog under Super Admin -> Sites.

  15. momodulor
    Member
    Posted 3 years ago #

    Thanks for your help and Happy New Year!
    New year brought a decision to my problem:
    I found when I use default theme - everything is working well. So it seems to me that free theme "Simplo" does not work with multisite installation correctly

    there was the problem!

    Cheers

  16. momodulor
    Member
    Posted 3 years ago #

    It is possible to solve this problem this way:
    1. create a copy of the current theme with different name
    2. install the "new theme"
    3. activate it for the second blog

    now permalink has whole path

    WordPress has been updated to 3.0.3

  17. You mean you want a certain theme set as the default on new sites.

    Add this to wp-config.php:

    define(‘WP_DEFAULT_THEME’, ‘theme-folder-name’);
  18. momodulor
    Member
    Posted 3 years ago #

    Hi Andrea,
    I just did what I described in previous post and everything began to work.

    Thank you very much for your support!

Topic Closed

This topic has been closed to new replies.

About this Topic