SitePoint Sponsor

User Tag List

Results 1 to 8 of 8
  1. #1
    SitePoint Member Desperados's Avatar
    Join Date
    Jun 2008
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    remove effect of htaccess from domain !

    hi

    my main doamin is mydoamin.com

    and i parked mydoamian2.com

    main domain (mydoamin.com) is redirected to subfolder

    and i have a htaccess ! in root

    how i can remove effect of htaccess from main doamin ?

    because when i use htaccess the redirect will be remove !

  2. #2
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    Location
    Auckland
    Posts
    14,644
    Mentioned
    19 Post(s)
    Tagged
    3 Thread(s)
    despar8,

    It seems as if your main and secondary (parked) domains should have been reversed! To get into your control panel (CPanel?) and doing that would be the best solution. You may need to ask your host to change your primary domain, too!

    Lacking that, you're pretty well stuck with the mydomain2.com using its subdirectory for all its URLs.

    To answer your question directly, you cannot override (or nullify) any .htaccess directives in a higher directory (DocumentRoot in this case). To "turn off" something in the lower lever directory, you can provide new directives. On the other hand, it would really help to know specifically what you're asking about (your mod_rewrite code).

    Regards,

    DK
    David K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
    Client and (unpaid) WHB Ambassador
    mod_rewrite Tutorial Article (setup, config, test & write
    mod_rewrite regex w/sample code) and Code Generator

  3. #3
    SitePoint Member Desperados's Avatar
    Join Date
    Jun 2008
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i know that i can change my primary domain but my host dont let me use .ir domains for main domain !

  4. #4
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    Location
    Auckland
    Posts
    14,644
    Mentioned
    19 Post(s)
    Tagged
    3 Thread(s)
    despar8,

    UNpark the second domain then add it back as a pointer domain (to a subdirectory). Parking it means that the two domains contain identical content while a pointer domain is its own entity.

    Regards,

    DK
    David K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
    Client and (unpaid) WHB Ambassador
    mod_rewrite Tutorial Article (setup, config, test & write
    mod_rewrite regex w/sample code) and Code Generator

  5. #5
    SitePoint Member Desperados's Avatar
    Join Date
    Jun 2008
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by dklynn View Post
    despar8,

    UNpark the second domain then add it back as a pointer domain (to a subdirectory). Parking it means that the two domains contain identical content while a pointer domain is its own entity.

    Regards,

    DK


    i unparked doamin and i added it to a sub domain (addon domains)
    and now im happy !

    really thanx man !!!

  6. #6
    SitePoint Member Desperados's Avatar
    Join Date
    Jun 2008
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    now do i should redirect subdomain to addon domain for prevent duplicate contents ?

    my subdomain that i added domain to it ,is home.hamed.in and my addon domain is pcgames.ir

    now do i need to redirect home.hamed.in to pcgames.ir for prevent duplicate content for get good pagerank ?

  7. #7
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    Location
    Auckland
    Posts
    14,644
    Mentioned
    19 Post(s)
    Tagged
    3 Thread(s)
    despar8,

    No, that would cause a loop and, remember, you're trying to redirect the main domain to a subdirectory. IMHO, move all the main domain contents to the AddOn (Pointer) domain THEN move the subdirectory contents into the main domain's DcumentRoot (so you won't need to redirect).

    Then, each domain will have its own connection to the Internet and be viewed separately (unless you link the secondary domain to the main domain via its subdirectory).

    Regards,

    DK
    David K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
    Client and (unpaid) WHB Ambassador
    mod_rewrite Tutorial Article (setup, config, test & write
    mod_rewrite regex w/sample code) and Code Generator

  8. #8
    SitePoint Member Desperados's Avatar
    Join Date
    Jun 2008
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks man !


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •