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 13, 2008, 08:58:08 AM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Web Hosting Forum | Lunarpages
>
Lunarpages Web Hosting - Online Help Desk
>
Lunarpages - CPanel Help
>
Sub-domain address won't stay in the address bar.
Pages: [
1
]
Go Down
« previous
next »
Print
Author
Topic: Sub-domain address won't stay in the address bar. (Read 623 times)
bimdas
Newbie
Offline
Posts: 2
Sub-domain address won't stay in the address bar.
«
on:
January 25, 2008, 06:02:08 PM »
I've set up some sub-domains on my site. A simple procedure only that when I go to the sub-domain, the address reverts back to the original full link. This is very annoying as any add-on domains I set up seem to automatically point to a sub-domain which reverts back to the full link. Anyone else had this problem or knows a solution? I've tried the ticketing system but I need a quick solution.
thanks
Logged
MrPhil
Quantum Encyclopedia Writer
Offline
Posts: 3400
Re: Sub-domain address won't stay in the address bar.
«
Reply #1 on:
January 26, 2008, 10:07:03 AM »
So,
subd.primary.com
shows up in the address bar as
primary.com/subd/
, and
addon.com
shows up as
primary.com/addon/
or possibly
addon.primary.com
? In
public_html/.htaccess
add the following:
RewriteEngine On # only add this line if not already present
# clean up subdomains and add-on domain names
RewriteRule ^subd/?(.*)$
http://subd.primary.com/
$1 [R=301,NC]
RewriteRule ^addon/?(.*)$
http://www.addon.com/
$1 [R=301,NC]
RewriteCond %{HTTP_HOST} ^addon\.primary\.com [NC]
RewriteRule ^(.*)$
http://www.addon.com/
$1 [R=301,NC,L]
Logged
Visit My Site
E-mail Me
bimdas
Newbie
Offline
Posts: 2
Re: Sub-domain address won't stay in the address bar.
«
Reply #2 on:
January 27, 2008, 07:12:11 AM »
thanks for the reply, the ticketing system people have helped somewhat but there are still problems with my subdomains reverting back. My add-on only works if I leave out the www. at the start. If I add it on it reverts back to my root index.
Thanks for your tip, I'll try it out. Am I the only one having these problems?
Logged
RichardRay
Support
Spaceship Navigator
Offline
Posts: 77
Re: Sub-domain address won't stay in the address bar.
«
Reply #3 on:
February 14, 2008, 10:21:51 PM »
It sounds like this may be an issue with the Apache configuration if you don't have any custom DNS records or rewrites setup in your .htaccess files. If this is the case, server administrators would need to correct the config to correct this.
Logged
Lunarpages Web Hosting
Lunarpages Affiliate Program
FAQs
|
Tutorials
|
LP Glossary
Telephone: 1-714-521-8150
24 hour Network Status Line: 1-562-697-8106
Fax: 1-714-521-8195
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 - 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...