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
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
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 - Project Council

SEARCH the Forums or read theĀ DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply
Thanks given by:


Possibly Related Threads…
Thread Author Replies Views Last Post
Subdomain gbrain2008 3 7 ,394 03-08-2021, 05:34 PM
Last Post: ccr1969
Subdomain Not working PLZ HELP rajeevrrs 4 20 ,383 03-14-2020, 08:47 AM
Last Post: TGates
Sentora Subdomain Installl sathish2009 2 7 ,699 04-03-2017, 11:50 AM
Last Post: sathish2009

Forum Jump:


Users browsing this thread: 1 Guest(s)