The MU forums have moved to WordPress.org

.htaccess and permalinks (4 posts)

  1. idejuan
    Member
    Posted 15 years ago #

    Hi,

    I have an issue with permalinks. I am not really sure it is related to .htaccess, but here it goes

    - When I selece permalink to year/month/day in the main installation (mu) of http://www.mydomain.tld, it works fine

    - But when I select permalink in any of the subdomains, e.g. blogname.mydomain.tld, it does not work.

    I have transcribed the .htaccess below, which is the same as the htaccess.dist, so I dont understand why the permalink of the main site is working without changes in the .htaccess

    Thanks for helping,

    ignacio

    RewriteEngine On
    RewriteBase /

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

  2. tanvir
    Member
    Posted 15 years ago #

    Most probably a wild-card issue. Ask you service provider, is this support enable? If not, ask them to enable it.

  3. idejuan
    Member
    Posted 15 years ago #

    Thanks Tanvir,

    I have access to the server, and have activated in Plesk the following:

    *.dilmot.com. CNAME dilmot.com.

    Is this what you mean about wildcard?

  4. tdjcbe
    Member
    Posted 15 years ago #

    Is this what you mean about wildcard?

    The readme file included with your download contains instructions on the wildcard. Have you reviewed them and the other instructions in that file?

    Anything in the webserver's error logs?

    Do the subdomains work in general?

    Could you please define "It doesn't work"? Are you getting a 404 page? Some other sort of error? Is the error produced by the browser, webserver or mu?

    Just for reference, you may want to review this debugging page linked to from the readme file. To be honest, if you're coping your htaccess file, not checking your webserver's error logs, and using mydomain.tld as your url, chances are you haven't:

    http://codex.wordpress.org/Debugging_WPMU

About this Topic