jarv Posted August 5, 2011 Share Posted August 5, 2011 hi, on my site when I click on a different page link that has been built in my database it links to that page ID and shows it in the address bar as index.php?pageid=2 as PageID is Services, is it possible to have website.co.uk/services instead? the link name / page name is also in the database under that ID Quote Link to comment https://forums.phpfreaks.com/topic/243919-changing-url-to-say-name-of-page-not-id2/ Share on other sites More sharing options...
AyKay47 Posted August 5, 2011 Share Posted August 5, 2011 im not 100% sure about this question or what exactly you are asking...however this looks like it could be done with a mod_rewrite perhaps? try looking this up on a search engine..someone else on here will most likely have a solution, however i wanted to point you in the right direction Quote Link to comment https://forums.phpfreaks.com/topic/243919-changing-url-to-say-name-of-page-not-id2/#findComment-1252480 Share on other sites More sharing options...
jarv Posted August 5, 2011 Author Share Posted August 5, 2011 yeah, I suppose I could do it with 301 redirect although, not sure what the next page would be named if a new page was added?! Quote Link to comment https://forums.phpfreaks.com/topic/243919-changing-url-to-say-name-of-page-not-id2/#findComment-1252485 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.