| Author |
Topic Search Topic Options
|
Roberto Randall
Senior Member
Joined: 21 August 2009
Location: San Pedro Alc.
Status: Offline
Points: 277
|
Post Options
Thanks(0)
Quote Reply
Topic: Modify the path of a subdomain 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
|
 |
WebWiz-Bruce
Admin Group
Web Wiz Developer
Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
|
Post Options
Thanks(0)
Quote Reply
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.
|
|
|
 |
Roberto Randall
Senior Member
Joined: 21 August 2009
Location: San Pedro Alc.
Status: Offline
Points: 277
|
Post Options
Thanks(0)
Quote Reply
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.
Edited by Roberto Randall - 02 October 2024 at 10:22am
|
|
https://www.lanocion.es - https://www.lanocion.games - https://www.lanocion.chat
|
 |
WebWiz-Bruce
Admin Group
Web Wiz Developer
Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
|
Post Options
Thanks(0)
Quote Reply
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.
|
|
|
 |
Roberto Randall
Senior Member
Joined: 21 August 2009
Location: San Pedro Alc.
Status: Offline
Points: 277
|
Post Options
Thanks(0)
Quote Reply
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
|
 |
WebWiz-Bruce
Admin Group
Web Wiz Developer
Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
|
Post Options
Thanks(0)
Quote Reply
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.
|
|
|
 |