Web Hosting Forum | Lunarpages

Author Topic: How to make domain show up for sub directory  (Read 5401 times)

Offline robusdin

  • Newbie
  • *
  • Posts: 5
How to make domain show up for sub directory
« on: December 24, 2017, 10:12:18 AM »
I own a domain - registered at the other hosting company. It is JerseyJamcast.com

It is currently pointed at: http://www.usdin.net/jjcnew/

How can I make all pages show up as the domain itself?

Thanks!

Offline MrPhil

  • Senior Moderator
  • Berserker Poster
  • *****
  • Posts: 6246
Re: How to make domain show up for sub directory
« Reply #1 on: December 24, 2017, 12:10:08 PM »
So JerseyJamcast.com is defined as an add-on domain, pointed to usdin.net/JJCNew/? Try the following in your /.htaccess (public_html/.htaccess) file:

Code: [Select]
RewriteEngine On
RewriteCond  %{HTTP_HOST}  ^(www\.)?usdin\.net  [NC]
RewriteCond  %{REQUEST_URI}  ^/JJCNew  [NC]
RewriteRule  JJCNew/(.*)$  http://JerseyJamcast.com/$1  [R=301,L]

That will usually cause the desired name to show up in the browser. I'm assuming this is a normal Apache server, which processes .htaccess, and not Windows.
Visit My Site

E-mail Me
  
-= From the ashes shall rise a sooty tern =-

 

Share |