Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 19
  1. #1
    1link4it
    Guest

    Default redirecting a domain to a subfolder

    Help,

    How do I redirect a domain to a subfolder?

    i have only one domain and installed in a folder /mambo
    The CMS Mambo.

    How do I redirect this to my domain name ?


    Thanks

  2. #2
    Member
    Join Date
    Feb 2004
    Posts
    204

    Default

    Hi,

    Please include the following entry in the .htaccess file:

    redirect permanent domain.com/mambo/ yourdomain.com

    Regards,

    Bright

  3. #3
    1link4it
    Guest

    Default

    Originally posted by BrightAdmin
    Hi,

    Please include the following entry in the .htaccess file:

    redirect permanent domain.com/mambo/ yourdomain.com

    Regards,

    Bright

    Thanks. and where can i find that .htaccess file please ?

  4. #4
    Member
    Join Date
    Feb 2004
    Posts
    204

    Default

    Hi,


    You can find the .htacces file in the following path:

    /home/user/public_html/.htaccess

    Regards,

    Bright

  5. #5
    1link4it
    Guest

    Smile

    Originally posted by BrightAdmin
    Hi,


    You can find the .htacces file in the following path:

    /home/user/public_html/.htaccess

    Regards,

    Bright
    thank you

  6. #6
    1link4it
    Guest

    Default

    Originally posted by 1link4it
    thank you
    oh dear, there is nothing

    Do you have an example >? is it called .htaccess and what should be the file rights rwxxx?

    Thank you

  7. #7
    Member PWSowner's Avatar
    Join Date
    Nov 2001
    Location
    ON, Canada
    Posts
    2,994

    Default

    If you don't have a .htaccess file, you can just create one.
    Mike
    WHM and cPanel Scripts (join our "Scripts Club")
    D/A Photography

  8. #8
    Member PWSowner's Avatar
    Join Date
    Nov 2001
    Location
    ON, Canada
    Posts
    2,994

    Default

    Also, have you tried the "Manage Redirects" in cpanel?
    Mike
    WHM and cPanel Scripts (join our "Scripts Club")
    D/A Photography

  9. #9
    1link4it
    Guest

    Default

    Originally posted by squirrel
    Also, have you tried the "Manage Redirects" in cpanel?
    Yes, but i had no result or i did that also wrong...i feel a bit hopeless now, and i don't know where it is wrong...

    The plan was to have 2 folders, one for the web site and one for the test web site....

    so i installed in /mambo the Web Site.

    Then went to manage redirect and tried several settings.

    like http://domain.com/mambo/ --> http://domain.com

    But if you know it, then yes please..i thought that the redirects where ment for these things

  10. #10
    Member PWSowner's Avatar
    Join Date
    Nov 2001
    Location
    ON, Canada
    Posts
    2,994

    Default

    Try this:

    In your redirect setup page in cpanel, put

    mambo/

    in the first box, and put

    domain.com

    in the second box, without http://.

    Should work.

    I just set a similar one up. Go to http://subdomainplaza.net/test/ to see what I mean. Just ignore the parked page you see.
    Mike
    WHM and cPanel Scripts (join our "Scripts Club")
    D/A Photography

  11. #11
    1link4it
    Guest

    Default

    Originally posted by squirrel
    Try this:

    In your redirect setup page in cpanel, put

    mambo/

    in the first box, and put

    domain.com

    in the second box, without http://.

    Should work.

    I just set a similar one up. Go to http://subdomainplaza.net/test/ to see what I mean. Just ignore the parked page you see.

    Yes, that works fine...great thank you for all your help, i am trying it right now

  12. #12
    1link4it
    Guest

    Default

    Originally posted by 1link4it
    Yes, that works fine...great thank you for all your help, i am trying it right now
    NO not working, the redirect is giving this info

    /mambo/ http://domain.com (permanent)


    i have exact as you told me...

    Last edited by 1link4it; 03-16-2004 at 10:57 AM.

  13. #13
    1link4it
    Guest

    Default

    [QUOTE]Originally posted by 1link4it
    [B]NO not working, the redirect is giving this info

    /mambo/ http://domain.com (permanent)


    i have exact as you told me...
    Last edited by 1link4it; 03-16-2004 at 10:56 AM.

  14. #14
    1link4it
    Guest

    Default

    [QUOTE]Originally posted by 1link4it

    not working....
    Last edited by 1link4it; 03-16-2004 at 10:56 AM.

  15. #15
    Member PWSowner's Avatar
    Join Date
    Nov 2001
    Location
    ON, Canada
    Posts
    2,994

    Default

    [QUOTE]Originally posted by 1link4it
    [B]
    Originally posted by 1link4it
    NO not working, the redirect is giving this info

    /mambo/ http://domain.com (permanent)


    i have exact as you told me...

    That's exactly how mine looks when I go to my redirects page. It's weird that it doesn't work for you. Maybe your hosting provider made your .htaccess file unwritable or something, preventing it from working.

    I suggest asking them about it because someone needs to look at it to find the problem.
    Mike
    WHM and cPanel Scripts (join our "Scripts Club")
    D/A Photography

Similar Threads & Tags
Similar threads

  1. Redirecting another domain to subfolder
    By Coled in forum New User Questions
    Replies: 0
    Last Post: 10-02-2009, 06:34 AM
  2. Redirecting Domain to file
    By takuhii in forum New User Questions
    Replies: 6
    Last Post: 06-17-2009, 05:23 PM
  3. Redirecting a domain
    By rkm11 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-29-2008, 08:34 AM
  4. how do i point a domain to a cms in a subfolder
    By dezomat in forum New User Questions
    Replies: 2
    Last Post: 08-22-2005, 09:45 AM
  5. Redirecting Domain
    By Coffeymate in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 12-12-2003, 09:36 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube