Solved

PHP Dynamic Page Name

Posted on 2010-11-27
3
347 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 109

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
ebay devID, appID, certID, userToken 2 29
Curl & PHP Command Help 4 23
Php recording post 4 50
comma true 6 34
Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
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…
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 …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

809 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