monkeytooth Posted July 15, 2008 Share Posted July 15, 2008 I dunno where I should ask this but i frequent this part of the forum so here goes.. I really don't know how to ask what It is I wanna do, I belive its possible. I think I recall once reading something on the subject. This deals with search engine indexing. So here goes. Im making a site mostly php/sql based. So its vastly dynamicly ran based on pre-templated files. But from what I recall, search engines hate the long URLs and avoid them. So keeping the Dynamic element in mind. How can I say this. Well Ill put it right out there.. Instead of: index.php?some=thing&other=thing&this=that&article=625989999 goto something to the effect of: ../thing/other/this/625989999.html Now I know the url is still long but now it holds the effect of something static.. Quote Link to comment https://forums.phpfreaks.com/topic/114865-getting-php-to-end-in-html/ Share on other sites More sharing options...
trq Posted July 15, 2008 Share Posted July 15, 2008 Google mod_rewrite tutorials or take a look in our mod_rewrite board (child of the apache board). Quote Link to comment https://forums.phpfreaks.com/topic/114865-getting-php-to-end-in-html/#findComment-590679 Share on other sites More sharing options...
pugboy Posted July 15, 2008 Share Posted July 15, 2008 You would want to include the file. http://us3.php.net/include/ You can build the path from the get variables. Quote Link to comment https://forums.phpfreaks.com/topic/114865-getting-php-to-end-in-html/#findComment-590684 Share on other sites More sharing options...
ag3nt42 Posted July 15, 2008 Share Posted July 15, 2008 pugboy has the best solution i think.. just use the variables you currently have and rebuild them before you output the link. Quote Link to comment https://forums.phpfreaks.com/topic/114865-getting-php-to-end-in-html/#findComment-590690 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.