News
: October 6, 2008 -
Submit Your Site for the October 2008 Site of the Month!
Home
Help
Search
Calendar
Login
Register
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
October 15, 2008, 10:03:44 PM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Web Hosting Forum | Lunarpages
>
Lunarpages Web Hosting - Advanced Assistance
>
Web Management
>
How to point an adon domain or a subdomain to subfolder of second level?
Pages: [
1
]
Go Down
« previous
next »
Print
Author
Topic: How to point an adon domain or a subdomain to subfolder of second level? (Read 1819 times)
jureb
Newbie
Offline
Posts: 5
How to point an adon domain or a subdomain to subfolder of second level?
«
on:
May 14, 2008, 01:59:11 AM »
I'm setting up some domains and subdomains on my basic hosting plan and I'm wondering if it is possible to point an adondomain or a subdomain to a subfolder of a second level (root_folder/subfolder/folder_to_which_subdomain_points)?
I've heard it could be possible by .htaccess, but have no idea how. Does anybody know it.
«
Last Edit: May 14, 2008, 08:23:53 AM by jureb
»
Logged
jureb
Newbie
Offline
Posts: 5
Re: How to point an adon domain or a subdomain to subfolder of second level?
«
Reply #1 on:
May 15, 2008, 08:27:04 AM »
No ideas !? Please help me
Logged
MrPhil
Quantum Encyclopedia Writer
Offline
Posts: 3407
Re: How to point an adon domain or a subdomain to subfolder of second level?
«
Reply #2 on:
May 15, 2008, 01:00:10 PM »
Don't try using the cPanel Redirect function to do this, as it will trip up on subdomains and add-on domains. You'll have to manually edit your
.htaccess
files (one in each subdomain or add-on domain root directory).
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/second_level
RewriteRule ^(.*)$ /second_level/$1 [L]
Something like that (I'm working off the top of my head on about 3 hours sleep). The idea is, once control is in the root directory of the subdomain or add-on domain, you exclude cases where you're already starting at the second level, and redirect to
second level
+original request. It may require some tweaking, but it should be close to that. If you want the visitor to see the new address in their browser, replace
[L]
with
[R=301,L]
.
Logged
Visit My Site
E-mail Me
jureb
Newbie
Offline
Posts: 5
Re: How to point an adon domain or a subdomain to subfolder of second level?
«
Reply #3 on:
May 16, 2008, 03:21:43 PM »
Thanks a lot it helped me!
I also used some help here:
http://corz.org/serv/tricks/htaccess2.php
JureB
Logged
Pages: [
1
]
Go Up
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Lunarpages Web Hosting - Information & Opportunities
-----------------------------
=> Lunarpages Web Hosting - Announcements
=> Lunarpages Web Hosting - Hosting Plans & Site Information
=> Job Opportunities at Lunarpages Web Hosting
=> Lunarpages Web Hosting - Network Information
=> Lunarpages Web Hosting - Server Information
-----------------------------
Lunarpages Web Hosting - Before Signing Up
-----------------------------
=> Lunarpages Web Hosting Plans - Pre-Sales Questions
-----------------------------
Lunarpages Web Hosting - Online Help Desk
-----------------------------
=> Lunarpages - Webhosting Help
=> Lunarpages - Beginner Assistance
=> Lunarpages - How to's
=> E-mail with your Lunarpages Hosting Plan
=> Lunarpages - CPanel Help
=> Lunarpages - LPCP Beta
=> Lunarpages - Ecommerce Hosting
=> Lunarpages - FrontPage
=> Lunarpages - DreamWeaver
=> Lunarpages - Spanish Questions (Preguntas en espaņol)
=> Lunarpages - Message Boards-Forums-Fantastico Scripts
===> Lunarpages - Joomla / Mambo
-----------------------------
Lunarpages Web Hosting - Advanced Assistance
-----------------------------
=> Web Management
=> Lunarpages - Webdesign and HTML
=> Lunarpages - Search Engine Optimization
=> Lunarpages - Animation & Flash
=> Lunarpages - Graphics
=> Lunarpages - Web Hosting, Email & PC Security
=> Lunarpages - Dedicated Web Hosting
===> Lunarpages - cPanel & WHM
===> Lunarpages - General
===> Lunarpages - Plesk
===> Lunarpages - Security
===> Lunarpages - Tutorials
===> Lunarpages - Webmin
=> Lunarpages - Reseller Web Hosting
===> Lunarpages - WHM
=> Lunarpages - VPS Hosting
=> Lunarpages - SharePoint Services (Beta)
-----------------------------
Lunarpages Web Hosting - Coding
-----------------------------
=> Lunarpages - ASP
=> Lunarpages - C++ / PERL / CGI
=> Lunarpages - PHP & MySQL
=> Lunarpages - Java Applets & Javascript
=> Lunarpages - JSP & Servlets
=> Lunarpages - Ruby Hosting
=> Lunarpages - Windows Development & Hosting
-----------------------------
Lunarpages Web Hosting - Entertainment
-----------------------------
=> Lunarpages - Chat & Stuff!
=> Lunarpages - Contests
=> Fun at Lunarpages!!
=> Lunarpages - Online Gaming
-----------------------------
Lunarpages Web Hosting - General
-----------------------------
=> Social Networking
=> Lunarpages Free Web Hosting - Education Program
=> Lunarpages - Affiliate Program
=> Introduce Yourself to the Lunarpages Forum Community!
=> Your Websites & Creations at Lunarpages!
=> Lunarpages Website of the Month
=> Lunarpages - Service and Trade
Loading...