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
Only working 1 subdomain pedrowilson 3 7 ,032 11-12-2021, 04:59 AM
Last Post: 5050
Subdomain gbrain2008 3 6 ,079 03-08-2021, 05:34 PM
Last Post: ccr1969
Subdomain Not working PLZ HELP rajeevrrs 5 18 ,790 03-14-2020, 08:47 AM
Last Post: TGates

Forum Jump:


Users browsing this thread: 1 Guest(s)