The MU forums have moved to WordPress.org

about htaccess Rewrite (6 posts)

  1. itjoy.net
    Member
    Posted 15 years ago #

    I has parked my domain *.itjoy.net to \webroot

    how can I write the .htaccess to achieve this:

    aaa.itjoy.net -> \webroot\wpmu
    bbb.itjoy.net -> \webroot\wpmu
    ccc
    ddd
    ...
    ...

  2. VentureMaker
    Member
    Posted 15 years ago #

    I believe this is not htaccess task :)
    You should set home directory of every subdomain aaa.itjoy.net, bbb.itjoy.net to poin to \webroot\wpmu

  3. andrea_r
    Moderator
    Posted 15 years ago #

    Right, not an htaccess thing. you've set the widlcard in you domain, nwo you need to set it up in apache so all subdomain point to \webroot\wpmu . It's in the readme.txt file.

    And there's no need to write them all out - that's why they're called wildcards.

  4. VentureMaker
    Member
    Posted 15 years ago #

    Small clarification for itjoy.net:

    aaa.itjoy.net
    bbb.itjoy.net
    ccc
    ddd
    ...
    can be set as
    *.itjoy.net

    Just in case you didn't get andrea's remark above :)

  5. andrea_r
    Moderator
    Posted 15 years ago #

    :D Thanks.

  6. itjoy.net
    Member
    Posted 15 years ago #

    :!
    my site is on lunarpages,park *.itjoy.net to /wpmu is not work.
    but I have already achieve this features by adding these in .htaccess :

    RewriteEngine on

    RewriteCond %{REQUEST_FILENAME} !-f

    RewriteCond %{REQUEST_FILENAME} !-d

    RewriteCond %{HTTP_HOST} ^(.*\.)?itjoy.net$

    RewriteCond %{REQUEST_URI} !^/blogmu/

    RewriteRule ^(.*)$ /blogmu/$1

    and my site is normaly working on it now :)

    see http://itjoy.net

About this Topic

  • Started 15 years ago by itjoy.net
  • Latest reply from itjoy.net