Link to home
Start Free TrialLog in
Avatar of previewservices
previewservicesFlag for United Kingdom of Great Britain and Northern Ireland

asked on

PHP Dynamic Page Name

Hello,

On some website you can see a webpage name where is says www.mydomain.com/this-is-my-page.html, is there a way of making the html page a dynamic name through page names in a database for SEO purposes? So in the database if the "filename" column was "My Test Page" it would be www.mydomian.com/My-Test-Page.html

Thanks in advance.
ASKER CERTIFIED SOLUTION
Avatar of neomaffia
neomaffia

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You can also use URL a rewriting engine (like mod_rewrite in Apache) to archive this.
See here http://www.blog.highub.com/apache/http-server/htaccess-permalink-mod_rewrite/
You can do this, of course, but this part is not really how things work: "page names ... for SEO purposes?"

Search engines are not really interested in the URL.  They are much more interested in the content of the <title> tag, the meta-description, the <h1> tag and the contents of the text at the top of the HTML string.  And, of course, they are very interested in which sites link to your site.

So forget about using the page names for SEO purposes -- instead if you want to use pretty URLs, use them in ways that help people remember the links in your site.