This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Subdomain foward to http url
#1
[Not Solved] Subdomain foward to http url
Looking to forward a subdomain sponsors.domain.tld to http://domain.tld/sponsors.

My old panel just had a forward option. I cant find anything on this. Only creating subdomains.
Reply
Thanks given by:
#2
[Not Solved] RE: Subdomain foward to http url
2 ways:
  1. Use a custom vhost entry for the sub domain
  2. Use a .htaccess file in the sub domain's root folder
1. Log in as zadmin and navigate to Admin > Module Admin > Apache Config > Virtualhost Override > [select sub domain] > Custom Entry:
Code:
# REDIRECT SUB.DOMAIN to DOMAIN/SUB FOLDER
Redirect / http://domain.tld/sponsors

2. Create a .htaccess file in the sub domain's root folder with the following contents:
Code:
Redirect / http://domain.tld/sponsors
1 is the recommended way, but I am not sure if it will work with the other directives in the vhost for the sub domain.
2 may be your best bet.
-TGates - Head of Support

SEARCH the Forums or read the DOCUMENTATION before posting!
Modules Maintained: 13 - Module Installs: 108k+

Find my support helpful? Donate HERE
Help me to help you by getting your domains using this link:
GoDaddy - Domains
Reply
Thanks given by:


Possibly Related Threads...
Thread Author Replies Views Last Post
Sentora Subdomain Installl sathish2009 2 285 04-03-2017, 11:50 AM
Last Post: sathish2009
Subdomain + Cloudflare Help M0HX 2 512 02-04-2017, 02:18 AM
Last Post: M0HX
How To Setting Subdomain Without Domain (.com) wehaye 2 911 09-15-2016, 11:30 PM
Last Post: wehaye

Forum Jump:


Users browsing this thread: 1 Guest(s)