-
AuthorPosts
-
January 14, 2017 at 7:30 pm #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
January 16, 2017 at 7:43 am #733925Hey 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,
VinayJanuary 16, 2017 at 3:13 pm #734082Hi 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
January 18, 2017 at 7:28 am #735159Hi,
The url is incorrect.
<a href="../accommodation/#alpine_retreats‎">Alpine Retreats</a>
Please use absolute url.
<a href="http://james.artyzans.co.uk/wp/accommodation/#alpine_retreats">Alpine Retreats</a>
Best regards,
IsmaelJanuary 18, 2017 at 2:04 pm #735297Hi 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 (  ;) are doing that keep sneaking in but I have to keep taking it out of the html.
their stay in Jessica Sechs and are on hand 24/7.</p>
I’m sure this is not a typo.
Thanks,
James
January 21, 2017 at 3:08 pm #736770Hey!
That’s weird. Maybe, something is altering the url. Please disable all plugins then edit the page again.
Cheers!
IsmaelJanuary 23, 2017 at 7:57 pm #737402Hey Ismael,
Thanks for getting back. After disabling every plugin and pasting the link in, it still reverts to the strange shortened URL.
Thanks,
James
January 27, 2017 at 4:00 pm #739438Hi,
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,
VinayJanuary 30, 2017 at 1:34 pm #740168Hi 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
February 2, 2017 at 4:25 pm #741874Alright 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
February 2, 2017 at 10:24 pm #742047Hi James,
Glad you sorted it out :)
Best regards,
Nikko -
AuthorPosts
- The topic ‘Hyperlinks to section id specific colour sections giving me and others an error’ is closed to new replies.