I have added few custom external links to my menu and they all link to 1 website but with a few subfolders, so the urls look pretty much like this:
website.co.uk/web1/web2/web3/folder1\folder2\folder3
It does not seem to work for me as wordpress changes my site url every time when I click on it to something like this:
website.co.uk/web1/web2/web3/folder1folder2folder3
(so it removes back slashes from the url)
Of course the website opens but there is no content because such a folder does not exist.
Does anyone know a solution to this little problem?
I have added few custom external links to my menu and they all link to 1 website but with a few subfolders, so the urls look pretty much like this:
website.co.uk/web1/web2/web3/folder1\folder2\folder3
It does not seem to work for me as wordpress changes my site url every time when I click on it to something like this:
website.co.uk/web1/web2/web3/folder1folder2folder3
(so it removes back slashes from the url)
Of course the website opens but there is no content because such a folder does not exist.
Does anyone know a solution to this little problem?
Backslashes (\
) are not usually used in URL addresses, so WordPress tries to fix it to correct URL.
I’m almost certain that you should use slashes (/
) instead:
http://website.co.uk/web1/web2/web3/folder1/folder2/folder3
Then it should all work correctly.