kb0000 Posted November 13, 2008 Share Posted November 13, 2008 Hi, I am using PHP for my sites. In my site whenever i link to any page i do it by using something like this http://domainname.com/index.php?page=pagename Here, i pass the page name in the link, so that I have a common index.php page to catch all the pages and show them. But problem that i am facing is that i think that search engines don't travel through all these pages as the links are not proper links but in a query format i.e. ?page=pagename. Now, I want that i should give links like http://domainname.com/dir/page... so in this case i have to include header, footer and navigation links in every page (but earlier it was easy for me as only in index.php page i have used the template i.e. including header, footer and navigation links page), now i have to include these in every page. Whats the way of implementing this thing, so that the rest of the pages can be searched by Search Engines. Thanx Quote Link to comment Share on other sites More sharing options...
Mchl Posted November 13, 2008 Share Posted November 13, 2008 The solution is called mod_rewrite. Don't ask me details, I don't know them. Quote Link to comment Share on other sites More sharing options...
nitation Posted November 13, 2008 Share Posted November 13, 2008 mod_rewrite is the solution to this. Quote Link to comment 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.