Removing the root for page permalinks
-
I have searched through pages and pages of the forums (and read the codex), and usually people just want to change the permalinks from the page id to something more normal-looking. I already know how to do that (and have), so no worries there. My problem is that when you set the permalink structure for pages, it comes up in the format https://url.com/wordpress/page/
I don’t want that. I want https://url.com/wordpress/page.php. Having the page in its own directory like that is messing up my graphical navigation. I can set the images to be ../wp-content/themes/themename/images/image.jpg and they show up fine on all the pages except the index page, or I can take out the ../ and they show up only on the index page.
I do not want to absolutely link the entire URL, because this is a theme I am making for someone else and do not know their URL yet nor do I want to have to change it after it’s uploaded. Since the problem is coming from the pages being treated as separate directories, I want them all in the root directory, so my coding works for them and the index page. I also do not want to go back to the default permalink structure of the page id, as my client is not very internet-literate and doesn’t want anything that looks confusing.
I would prefer not to hack wordpress core files, but if necessary, I will. Thanks in advance!
- The topic ‘Removing the root for page permalinks’ is closed to new replies.