Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Modify the path of a subdomain
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Modify the path of a subdomain

 Post Reply Post Reply
Author
Roberto Randall View Drop Down
Senior Member
Senior Member
Avatar

Joined: 21 August 2009
Location: San Pedro Alc.
Status: Offline
Points: 277
Post Options Post Options   Thanks (0) Thanks(0)   Quote Roberto Randall Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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. 
Back to Top
Roberto Randall View Drop Down
Senior Member
Senior Member
Avatar

Joined: 21 August 2009
Location: San Pedro Alc.
Status: Offline
Points: 277
Post Options Post Options   Thanks (0) Thanks(0)   Quote Roberto Randall Quote  Post ReplyReply Direct Link To This Post 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" and the url "https://images.vidauna.com/3/twin-the-bin.jpg" to be the same. The subdomain does not show "/uploads".


Edited by Roberto Randall - 02 October 2024 at 10:22am
https://www.lanocion.es - https://www.lanocion.games - https://www.lanocion.chat
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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. 
Back to Top
Roberto Randall View Drop Down
Senior Member
Senior Member
Avatar

Joined: 21 August 2009
Location: San Pedro Alc.
Status: Offline
Points: 277
Post Options Post Options   Thanks (0) Thanks(0)   Quote Roberto Randall Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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. 
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.