Print Page | Close Window

Modify the path of a subdomain

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=31814
Printed Date: 27 March 2026 at 9:21pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Modify the path of a subdomain
Posted By: Roberto Randall
Subject: Modify the path of a subdomain
Date Posted: 02 October 2024 at 7:09am
Hi,

My domain vidauna.com also has the subdomain images.vidauna.com. How can I make the subdomain path "upload/images"? Is it putting something in web.config?

I hope this makes sense, I'm Spanish and I translate with Google Translate, thanks.


-------------
https://www.lanocion.es - https://www.lanocion.games - https://www.lanocion.chat



Replies:
Posted By: WebWiz-Bruce
Date Posted: 02 October 2024 at 8:16am
It all depends how your subdomain is configured. It could be an independent website with its own folder path, or it could be the subdomain points at an existing website.

I would advise raising a support ticket with your hosting provider so they can take a look at how the subdomain is configured and give you the correct answer to this question. 

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: Roberto Randall
Date Posted: 02 October 2024 at 8:29am
The subdomain points to the root of the main one. I don't want it to point directly to "upload/images" so that it doesn't create system files like "user.ini" etc. in that folder.

An example:

I want the url " https://www.vidauna.com/uploads/3/twin-the-bin.jpg" rel="nofollow - https://www.vidauna.com/uploads/3/twin-the-bin.jpg" and the url " https://images.vidauna.com/3/twin-the-bin.jpg" rel="nofollow - https://images.vidauna.com/3/twin-the-bin.jpg" to be the same. The subdomain does not show "/uploads".


-------------
https://www.lanocion.es - https://www.lanocion.games - https://www.lanocion.chat


Posted By: WebWiz-Bruce
Date Posted: 02 October 2024 at 2:11pm
As you have a web.config file I presume you are using a Windows IIS web server.

I would create a new website for the subdomain so it can have its own web.config file, then add a virtual directory in the IIS manager that points at the at the folder on your man website. You may have to play around a bit with what you call the virtual directory and what folder it points at till you get the URL you want. 


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: Roberto Randall
Date Posted: 02 October 2024 at 3:15pm
Yes, I have a Windows server.

Since I have never done this, I will practice as you say and I assume that there will be help and manuals on the web to create virtual directories and create this system.

Thanks,

-------------
https://www.lanocion.es - https://www.lanocion.games - https://www.lanocion.chat


Posted By: WebWiz-Bruce
Date Posted: 02 October 2024 at 3:26pm
Its very easy, just right click the website in IIS and select 'Add Virtual Directory', pint it at the folder you want on the main website, and give it an alias name. The alias name is what you type in the URL for the website to reach the folder.

You may need to adjust the folder permissions of the subdomain website runs under a different user account for the application pool. 


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net