Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #733631

    Hi Chaps,

    When previewing a page with a hyperlink tied to a colour section on a separate page, the site will direct you to the correct anchor. However when I re-load the initial page from it’s preview URL state to the permalink, that same hyperlink gives me the following errors:

    Not Found

    The requested URL /accommodation/ was not found on this server.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

    The best way to observe this is to preview my home page, and scroll down just a little bit to the hyperlink “Alpine Retreats”. You will see this work. Then click home to load the permalink and do the same again, then you will see the error appear.

    I’ve left my credentials below. Any advice would go greatly appreciated.

    All the best,

    James

    #733925

    Hey Jambo,

    It appears wordpress is installed inside a folder name “wp ” hence all your URL’s will have this folder name.

    The correct URL you need to use is http://YOUR-SITE.co.uk/wp/accommodation/#alpine_retreats

    Best regards,
    Vinay

    #734082

    Hi Vinay,

    Thank you for your response. I believe I’m already using the URL extensions as you have mentioned above. I have 4 icons which link to colour sections on a separate page with hyperlinks below the icons with the exact same hyperlinks. The icons work whereas the hyperlinks do not. If this is not a typo issue, is there something deeper routed causing the problem?

    All the best,

    James

    #735159

    Hi,

    The url is incorrect.

    <a href="../accommodation/#alpine_retreats&lrm;">Alpine Retreats</a>
    

    Please use absolute url.

    <a href="http://james.artyzans.co.uk/wp/accommodation/#alpine_retreats‎">Alpine Retreats</a>
    

    Best regards,
    Ismael

    #735297

    Hi Ismael,

    Even after copying and pasting your URL the problem persists. From the layout builder I go to the text block and find the reference has shortened itself (below) after pasting your url in.

    <a href="../accommodation/#alpine_retreats">Alpine Retreats</a>
    

    I don’t know what these extra pieces of code (&nbsp ;) are doing that keep sneaking in but I have to keep taking it out of the html.

    their stay in Jessica Sechs&nbsp;and are on hand 24/7.</p>
    

    I’m sure this is not a typo.

    Thanks,

    James

    #736770

    Hey!

    That’s weird. Maybe, something is altering the url. Please disable all plugins then edit the page again.

    Cheers!
    Ismael

    #737402

    Hey Ismael,

    Thanks for getting back. After disabling every plugin and pasting the link in, it still reverts to the strange shortened URL.

    Thanks,

    James

    #739438

    Hi,

    I have updated the URL as suggested above and everything works fine now!

    Please review the site and let us know if you have any questions.

    Best regards,
    Vinay

    #740168

    Hi Vinay,

    For the life of me I can’t get other hyperlinks to work. I’m not sure how you did it. In the text block does the hyperlink shorten down to the following for you?

    <a href="../accommodation/#alpine_retreats">Alpine Retreats</a>
    

    I’m now trying to make the ‘find out more’ link go to the top of the accommodation page. Even after copying the fixed link you made (Alpine Retreats) and taking out the #alpine_retreats in the text, it still doesn’t work. The hyperlink in the text block now showing the following for me:

    <a href="../accommodation/">Find out more</a>
    

    Even after re-typing the entire link in the text block it reverts to this shortened version.

    The same goes for the 4 hyperlinks under the 4 icons (the resort, skiing, summer and location) however clicking the icons remains to work as intended.

    Thank you,

    James

    #741874

    Alright chaps, I fixed it. I just had to insert new text blocks and type the hyperlinks rather than copy and pasting them.

    You can close this thread.

    Thanks,

    James

    #742047

    Hi James,

    Glad you sorted it out :)

    Best regards,
    Nikko

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘Hyperlinks to section id specific colour sections giving me and others an error’ is closed to new replies.