Skip to main content
Catalytically
Participating Frequently
Feb 26, 2018 2:44 AM UTC
Answered

Can a directory have a URL/page?

Not sure I worded the topic correctly, but this is my question.

Main folder for site is "MyWebsite" and folders below that are "images", "videos", "events".

In the main folder, I have most of my pages:  index, contact, blog, events.

In the events folder, I have:  event1, event2, event3.

On my mywebsite.com/events.html page, I have a list with links to:

  • mywebsite.com/events/event1.html
  • mywebsite.com/events/event2.html
  • mywebsite.com/events/event3.html

How can I make it so if a user enters mywebsite.com/events/ in the address bar, that it pulls up mywebsite.com/events.html instead of a 404 or "Forbidden"?  (Is that even possible?)

Thanks for any assistance!

Cat

This topic is closed to new replies. Start a new post to keep the conversation going.
BenPleysier
BenPleysierCorrect answer
Community Expert
Feb 26, 2018 3:43 AM UTC

when mywebsite.com/events/ is put into the address bar, the browser will look for one of the default pages.

Examples of default pages:

index.html, index.html, index.php

default.htm, default.html

home.htm, home.html

There are others, the above is as an illustration.

events.htm or event.html is not a default page, hence when you address the events directory, the browser looks for a default page.

As such, I suggest that you move events.html to the events directory and rename it index.html. Don't forget to adjust links to it and from it.

Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!

2 replies

BenPleysier
Community Expert
BenPleysierCommunity ExpertCorrect answer
Community Expert
Feb 26, 2018 3:43 AM UTC

when mywebsite.com/events/ is put into the address bar, the browser will look for one of the default pages.

Examples of default pages:

index.html, index.html, index.php

default.htm, default.html

home.htm, home.html

There are others, the above is as an illustration.

events.htm or event.html is not a default page, hence when you address the events directory, the browser looks for a default page.

As such, I suggest that you move events.html to the events directory and rename it index.html. Don't forget to adjust links to it and from it.

Translate
Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
Catalytically
Participating Frequently
Feb 26, 2018 4:07 AM UTC

Thank you so much Ben!  That fixed it for me :-)

Translate