WordPress.org

Forums

Permalink error on new blogs (14 posts)

  1. buddyok
    Member
    Posted 2 years ago #

    When a new site is created by a new user the permalink to their categories doesnt work.
    Instead a error message appear:
    This is somewhat embarrassing, isn’t it?
    It seems we can’t find what you’re looking for. Perhaps searching, or one of the links below, can help.

    I have found a way to fix this manually, by only updating the permalinks.
    By typing the url/usersblogurl/wp-admin/options-permalink.php

    My .htaccess:

    RewriteEngine On
    RewriteBase /
    
    #uploaded files
    RewriteRule ^(.*/)?files/$ index.php [L]
    RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
    RewriteRule ^(.*/)?files/(.*) wp-includes/ms-files.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>

    Created a test blog:
    http://sveablogg.se/testy
    -click on category
    How can I fix this?

  2. I have found a way to fix this manually, by only updating the permalinks.

    So you have them resave permalinks and it starts to work?

  3. buddyok
    Member
    Posted 2 years ago #

    Yes, once I resave the permalinks from the specifik users dashboard, it works. But only for that user.

  4. Only for that user or only for that site?

  5. buddyok
    Member
    Posted 2 years ago #

    Only for that user.
    When a new user account is created, they have to do the same thing.

  6. You likely have a plugin that's causing this problem. Are you using any registration plugins?

  7. buddyok
    Member
    Posted 2 years ago #

    The only plugins I use that add fields/changes the registration form is:
    Buddypress 1.6.1
    SI CAPTCHA Anti-Spam 2.7.5
    TOS

  8. I doubt it's BuddyPress, so try turning off the other two and see if it resolves?

  9. buddyok
    Member
    Posted 2 years ago #

    Tried it but it didn't work.
    How about the .htaccess file.
    Is the code ok?

  10. Actually ... on review, no it's not right.

    Use this one: http://codex.wordpress.org/Multisite_Network_Administration#.htaccess_and_Mod_Rewrite

  11. buddyok
    Member
    Posted 2 years ago #

    I changed the code and it still didn't work.

    My new .htaccess code:

    php_value upload_max_filesize 64M
    php_value post_max_size 64M
    php_value max_execution_time 300
    php_value max_input_time 300
    
    # BEGIN WordPress
    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).*) $1 [L]
    RewriteRule  ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]
    # END WordPress
    
    <IfModule mod_security.c>
    <Files async-upload.php>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </Files>
    </IfModule>
  12. When a new site is created by a new user the permalink to their categories doesnt work.
    Instead a error message appear:
    This is somewhat embarrassing, isn’t it?

    What URL are they sent to?

  13. buddyok
    Member
    Posted 2 years ago #

    They are sent to the right permalink, http://sveablogg.se/testy/category/okategoriserade/

    But the post can't be found in the categories.

  14. buddyok
    Member
    Posted 2 years ago #

    Anyone having a solution?
    Its a big issue for all the new members in my blog community.

Topic Closed

This topic has been closed to new replies.

About this Topic