Support » Fixing WordPress » I want a .htaccess rewrite mod code do the next – any body know about rewite mod

  • Resolved wisam-mo

    (@wisam-mo)


    hello there,
    I have a wordpress multiuser installed…
    one of thats blogs is mydomain.com/dir
    I have transfer that blog to a new domain: e.g: dir.com
    I delete the blog of the main site… and made a directory with name ‘dir’
    I put a .htaccess file in it…
    I want all the links of the old blog to be redirected to the new site…
    what is the rewrite code I have to put in that file…
    for known, the ‘dir’ directory have an index.php file witch is only file I want to be accessible with out redirecting…

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond /(any text) exclude 'index.php'
    RewriteRule www.dir.com/(the any text)
    </IfModule>

    hope I give you the whole idea…

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    Add this to a .htaccess file at mydomain.com:

    Redirect permanent /dir/ http://www.dir.com/

    I don’t think that helps me…
    I don’t want just redirection
    I want:
    ‘mydomain.com/dir’ redirected to ‘sd.com’
    ‘mydomain.com/dir/archives/234’ redirected to ‘sd.com/archives/234’
    ‘mydomain.com/dir/(anything here)’ redirected to ‘sd.com/(that anything)’

    exclude 1: if the (anything here) string has the word ‘feed’ I want it to be redirected using [L] modifier… (redirected internal)

    exclude 2: I don’t want the mydomain.com/dir/index.php to be redirected…

    I really want your help…

    I want one like this

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond /(any text) exclude 'index.php'
    RewriteRule http://www.dir.com/(the any text)
    </IfModule>

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘I want a .htaccess rewrite mod code do the next – any body know about rewite mod’ is closed to new replies.