WordPress: Custom URL
-
At front end I fetches some links from mysql db table like:
`<a href=”https://localhost/my_site/detail/Link-1″>Link 1</a>
<br />
<a href=”https://localhost/my_site/detail/Link-2″>Link 2</a>
<br />
<a href=”https://localhost/my_site/detail/Link-3″>Link 3</a>`and from admin side Setting -> Permalink I set
https://localhost/sparcs/sample-post/
and also create a page and named detail whose url is exactly https://localhost/my_site/detail/but when I click to any links WP says
Apologies, but the page you requested could not be found. Perhaps
searching will help.though I could use
<a href="https://localhost/my_site/detail/3">Link 3</a>
and it works fine & I could get url info usingpathinfo($_SERVER['REQUEST_URI']);
.Actually I create custom url in by db table and then show these url on my WP page leftbar and want if I click it wp show the page and I could be able to catch url info with
pathinfo($_SERVER['REQUEST_URI']);
I also used Custom Structure and set
https://localhost/my_site/detail/url
but not work.
- The topic ‘WordPress: Custom URL’ is closed to new replies.