• Resolved Lookin2Learn

    (@lookin2learn)


    Hello,
    I had been using pretty permalinks on my site without a problem. After moving into multi-site, the pretty permalinks don’t work anymore on either site. When using the “default” option (the “ugly permalinks”),the site works fine.
    Based on other posts here, it seems likely there is something missing from my .htaccess file, but I’m not sure what to add. Any suggestions?
    (I have confirmed with my web host that mod_rewrite is on and enabled in my account).
    My current .htaccess file reads as follows:

    # Use PHP5.4 as default
    AddHandler application/x-httpd-php54 .php
    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    Thanks for any help.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hey there Lookin2Learn,

    Hope you’re well! ??

    Did you follow the instructions step by step when you activate the multisite? There is a step that you need to replace the whole code/rule in your .htaccess file.

    This may help you: https://codex.www.ads-software.com/Create_A_Network

    Let me know if it helps! ??

    Take care,
    Calvin

    Thread Starter Lookin2Learn

    (@lookin2learn)

    Hi Calvin,
    Thanks so much for your response. I had followed that tutorial to set up the network and replaced the entire code in the .htaccess file. Once that was fully set up, the pretty permalinks stopped working.
    Any ideas what to do now to get them back?
    Thanks so much.

    Hey there Lookin2Learn,

    You are welcome and glad to help! ??

    Remove this code in wp-config.php

    /* Multisite */
    define( 'WP_ALLOW_MULTISITE', true );

    then replace the whole .htaccess rule with the code you pasted above.

    May I know if the multisite works?

    Looking forward for your reply! ??

    Take care,
    Calvin

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Thanks so much for your response. I had followed that tutorial to set up the network and replaced the entire code in the .htaccess file. Once that was fully set up, the pretty permalinks stopped working.

    What /htaccess code did you use that broke?

    Thread Starter Lookin2Learn

    (@lookin2learn)

    Hello,

    Thank you both for the response.

    Calvin – Can you please clarify where I can find the wp-config.php file? I’ve been accessing the back files through Filezilla, but am not clear in which subfolder to find this particular file.

    The multi-site works fine as is (both sites are functional), so long as I use the default permalinks.

    Mika –
    The code currently in my htaccess file is:

    # Use PHP5.4 as default
    AddHandler application/x-httpd-php54 .php
    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    This is the code I used when moving into multi-site. The migration to multi-site went well. However, whenever I try to choose a different permalink option (as I had on my original site, before moving into a multi-site), the individual pages don’t work. Only the “ugly” permalinks are working.

    Thanks for any suggestions you can offer.

    Hey there Lookin2Learn,

    You are welcome and glad to help! ??

    You can find the wp-config.php on the root directory of your wordpress install.

    Best Regards,
    Calvin

    Thread Starter Lookin2Learn

    (@lookin2learn)

    Hi,

    That did the trick! The pretty permalinks work great now. Thanks so much.

    For my own reference, would you mind explaining what that line in the wp-config file was doing so as to block the permalinks?

    Thanks. I’m trying to learn…

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Pretty Permalinks on multi-site’ is closed to new replies.