Solved

PHP Dynamic Page Name

Posted on 2010-11-27
3
346 Views
Last Modified: 2012-05-10
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.
0
Comment
Question by:previewservices
3 Comments
 

Accepted Solution

by:
neomaffia earned 250 total points
ID: 34223861
You can do that by add this in .htaccess in your folder

AddType application/x-httpd-php .html

0
 
LVL 18

Expert Comment

by:Sudaraka Wijesinghe
ID: 34224284
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/
0
 
LVL 108

Expert Comment

by:Ray Paseur
ID: 34225340
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.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now