The MU forums have moved to WordPress.org

requset for htaccess code (7 posts)

  1. Hassan1
    Member
    Posted 16 years ago #

    Hi all
    I want to redirect
    http://example.mydomain.com/
    to
    http://mydomain.com/example
    but I Can't.
    Now I use this code:

    -------
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^hassan.hodablog.com$ [OR]
    RewriteCond %{HTTP_HOST} ^www.hassan.hodablog.com$
    RewriteRule ^(.*)$ http://www.hodablog.com/hassan/$1 [R=301,L]
    -------

    I use Cpanel and installed WPMU subdirectory.

  2. Hassan1
    Member
    Posted 16 years ago #

    any idea?

  3. andrea_r
    Moderator
    Posted 16 years ago #

    You should have picked the other option on installation.

  4. drmike
    Member
    Posted 16 years ago #

    I'm lost here actually. What's the 'hassan' bit? Is this for a single blog or all of them?

  5. Hassan1
    Member
    Posted 16 years ago #

    Hi, drmike
    Yes, 'Hassan' is a single blog.

  6. Hassan1
    Member
    Posted 16 years ago #

    @ andrea_r
    "You should have picked the other option on installation."

    true but I can't use subdomain mode because of my host (Wildcards).

  7. heyguy
    Member
    Posted 16 years ago #

    You should find a better host, and then pick the other option during installation.

About this Topic