Forums

[resolved] permalink problems with mediatemplate host (6 posts)

  1. khaos68
    Member
    Posted 1 year ago #

    I have switched 2 wordpress sites to a multisite configuration, with both sites all the permalinks, and all file/content urls are broken. All return 404 errors.
    I have tried changing the permalink configuration to the default ( ?p=id), but it only repairs the post, tabs, categories and authors urls.
    The content still return errors for images, files, etc.

    Any idea how to fix this with Mediatemplate or which other hosting you recommend that works with wp multisite?

    Thanks

  2. dgilmour
    Member
    Posted 1 year ago #

    There's a line in your .htaccess file which rewrites URLs for uploaded files. Is it there? What does it contain?

    For my (subdir) installation, it looks like this:
    RewriteRule ^(.*/)?files/(.*) wp-includes/ms-files.php?file=$2 [L]

  3. khaos68
    Member
    Posted 1 year ago #

    This is the content of my .htaccess file:

    # BEGIN WordPress
    
    Options +FollowSymLinks
    RewriteEngine On
    
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule . index.php [L]
    # END WordPress
    AddHandler php5-script .php

    The other fact is that when I change the permalinks configurations in my wordpress installation this file is NOT changed. Is this the correct behavior?

  4. khaos68
    Member
    Posted 1 year ago #

    Someone at Media Template did something that makes my permalinks work again.
    I don't like their policy of "all is working here, it must be from your side" but always they give me this type of answer all starts working like magic.
    If only they try to correct the problem at the first contact instead of sending me first urls of wordpress documentation that I already read and tried :(

  5. Andrea_r
    team pirate
    Posted 1 year ago #

    The other fact is that when I change the permalinks configurations in my wordpress installation this file is NOT changed. Is this the correct behavior?

    Just confirming that yes, that's the correct behaviour.

  6. khaos68
    Member
    Posted 1 year ago #

    thanks Andrea!

Topic Closed

This topic has been closed to new replies.

About this Topic