Good day, I have a php page pagex.php which needs the url parameter ID. So there are like 200 totally different pages pagex.php pagex.php?id=1 pagex.php?id=2 ... pagex.php?id=200 For the surfer i do not want to show that url. Instead i want to show for example blue_jeans.html instead of pagex.php?id=5 ... Not only because that looks better, but also to make the page more relevant for google adsense. Is this possible?
You would need to have alongside each of the articles in your database a unique "short name" eg "blue_jeans" so that the system can search for the article by that name. Wordpress take a different approach that may be more flexible. I'm able to setup my links to look like vbulletins-inbuilt-rss-feeds/248/ which gives me some nice text in the name and includes the id. When the .htaccess gets the request it's the id which is used. How you formulate them is up to you. You may wish to have /blue_jeans_123.html /123/blue_jeans.html or any other combination. Either way it'll do the trick. Read other posts in the forum for how to setup your .htaccess so that all pages can conform to a "pattern" to create a quick an simple file.
Permalinks is a buzzword created by bloggers because of the time sensitive nature and their posts were moving around as new content is added. The technology and the concept is exactly the same.
Hi there. What you're trying to do is "URL Rewrite". This requires Apache to have the module called mod_rewrite installed. Guides for doing this: For Apache 2.x: http://httpd.apache.org/docs/2.0/misc/rewriteguide.html For Apache 1.x: http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html
Thanks Do you also know how search engines handle this ? Do they see the url's differently, or they read the dynamic pages?
Search engines should always see what people see - otherwise it's cloaking and that's a very bad thing. What happens is page_xyz.html is requested, the server says that means page.php?id=xyz and makes a second call. It's clean, good and happens everywhere.