#1 (permalink)  
Old 03-15-2004, 07:54 AM
1link4it
Guest
 
Posts: n/a
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 03-16-2004, 03:05 AM
Registered User
 
Join Date: Mar 2004
Posts: 204
BrightAdmin
Hi,

Please include the following entry in the .htaccess file:

redirect permanent domain.com/mambo/ yourdomain.com

Regards,

Bright
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 03-16-2004, 03:13 AM
1link4it
Guest
 
Posts: n/a
Quote:
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 ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 03-16-2004, 05:06 AM
Registered User
 
Join Date: Mar 2004
Posts: 204
BrightAdmin
Hi,


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

/home/user/public_html/.htaccess

Regards,

Bright
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 03-16-2004, 06:07 AM
1link4it
Guest
 
Posts: n/a
Smile

Quote:
Originally posted by BrightAdmin
Hi,


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

/home/user/public_html/.htaccess

Regards,

Bright
thank you
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 03-16-2004, 06:10 AM
1link4it
Guest
 
Posts: n/a
Quote:
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 03-16-2004, 09:44 AM
PWSowner's Avatar
Registered User
 
Join Date: Nov 2001
Location: ON, Canada
Posts: 2,991
PWSowner is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 03-16-2004, 09:48 AM
PWSowner's Avatar
Registered User
 
Join Date: Nov 2001
Location: ON, Canada
Posts: 2,991
PWSowner is on a distinguished road
Also, have you tried the "Manage Redirects" in cpanel?
__________________
Mike
WHM and cPanel Scripts (join our "Scripts Club")
D/A Photography
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 03-16-2004, 09:58 AM
1link4it
Guest
 
Posts: n/a
Quote:
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 03-16-2004, 10:48 AM
PWSowner's Avatar
Registered User
 
Join Date: Nov 2001
Location: ON, Canada
Posts: 2,991
PWSowner is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #11 (permalink)  
Old 03-16-2004, 11:21 AM
1link4it
Guest
 
Posts: n/a
Quote:
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 03-16-2004, 11:27 AM
1link4it
Guest
 
Posts: n/a
Quote:
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 11:57 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)  
Old 03-16-2004, 11:35 AM
1link4it
Guest
 
Posts: n/a
[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 11:56 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #14 (permalink)  
Old 03-16-2004, 11:48 AM
1link4it
Guest
 
Posts: n/a
[QUOTE]Originally posted by 1link4it

not working....

Last edited by 1link4it; 03-16-2004 at 11:56 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #15 (permalink)  
Old 03-16-2004, 10:25 PM
PWSowner's Avatar
Registered User
 
Join Date: Nov 2001
Location: ON, Canada
Posts: 2,991
PWSowner is on a distinguished road
[QUOTE]Originally posted by 1link4it
[B]
Quote:
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 03:22 PM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© cPanel Inc