Website URL issue

fr flag

I have an Drupal 10 installation on my Macbook Air. The web root is ~/Sites/drupal10/web. I have a hosts file entry pointing to localhost and I have an Apache Vhost set up with ServerName = and DocumentRoot = ~/Sites/drupal10/web.

If I access the site using the front page is displayed but as soon as I try to access any item in the menu the URL has /drupal10/web appended prior to the menu link. So assume I access the site from and then click on menu Contact Us, instead of the URL being it becomes and gives a page not found error. If I use the page is correctly displayed. I have been trying to get to the bottom of this for two days now and am stumped. If someone can point me in the right direction I would be most appreciative.

4uk4 avatar
cn flag
Menu links are cached. Did you clear the cache after changing the web server configuration?
Martin Fuggle avatar
fr flag
Exactly - why on earth did I not realise that. Once the caches were cleared everything worked as expected. Many thanks for helping
I sit in a Tesla and translated this thread with Ai:


Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.