[resolved] Word blog in my urls in my Multisite (5 posts)

  1. Penido
    Posted 1 year ago #

    Hello guys,
    I installed WP Multisite and I have a problem in permalinks.
    My site is installed in a directory called v12.
    WP added the word blog in my urls.

    Look at the urls below:


    I tried to redirect using the following code in .htaccess But it did not work:

    RewriteRule ^tag/(.*)$ /blog/tag/$1 [L,R=301]
    RewriteRule ^category/(.*)$ /blog/category/$1 [L,R=301]

    This is mine. Current htaccess

    RewriteEngine On
    RewriteBase /v12/
    RewriteRule ^index\.php$ - [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]

    What can I do to redirect my urls?

  2. WP added the word blog in my urls.

    This is what WordPress is supposed to do.

    You can change it by going to wp-admin -> Network -> Sites

    Click on edit-site for the main site.

    Scroll down to where permalinks are. Change it and remove /blog/

    HOWEVER. If you EVER save permalinks again, or have a plugin that does it, the /blog/ comes back.

  3. Penido
    Posted 1 year ago #

    Perfect! Worked properly. Thank you very much.

  4. latha2323
    Posted 1 year ago #

    i installed new word press site for multisite usage. However, My first 2 new sites with sub folders are created very well. but when i tried to create another 3 more sites with the same email adress , it is showing 404 error. Now iam not able to create any further sites or subfolders for my primary site. whhere should i look in to rectify the problem.
    my site

    the above are working
    but the other
    not working
    and now no more new site creation taking place.
    please help me out.

  5. latha2323
    Posted 1 year ago #

    sorry in the above post my site address is missing

Topic Closed

This topic has been closed to new replies.

About this Topic