Wednesday, July 27, 2022
HomeWordPress Developmentpermalinks - Customized hyperlinks in menus not working in a number of...

permalinks – Customized hyperlinks in menus not working in a number of environments


I’ve a prime menu with hyperlinks and for a few of them I want to make use of “Customized hyperlinks” as an alternative of linking to pages. This imply I’ve to write down www.sitename.com/pagename as an alternative of WordPress immediately referring to the web page for me with web page linking. This all works superb on the stay (manufacturing) website.

When testing I exploit a stageing setting. All web page hyperlinks now go to www.stage_sitename.com/pagename which is nice. Nevertheless, the customized ones nonetheless go to the manufacturing website since I’ve laborious coded them.

I’ve tried to make use of /index.php/pagename (reply from this query). It will take me to one thing that appears like root/index.php/pagename. The issue is that my staging setting appears to be like one thing like this: www.stage_sitename.com/~currentsite. Root will take me to www.stage_sitename.com/index.php/pagename however the true stage web page is at www.stage_sitename.com/~currentsite/index.php/pagename. I hope you get what I imply 🙂

How can I exploit customized hyperlinks in menus that may work for all environments?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments