I simply ran my website thru Nibbler and one of many comments was the following
Because I use PHP consists of for headers and also footers, ALL this pages have track extensions of PHP.
The only place Concerning heard about URL rewriting in the slightest I can understand is within WordPress, and MY SPOUSE AND I do use custom made permalinks in my personal blog.
Can anyone inform me mopre in relation to rewriting URLS Are these claims an htaccess matter
Yes, it is htaccess. In ones case, if you do have a custom CMS programmed into your web blog, you’ll need over that. You’ll also will need a table (or a minimum of a column inside a table) that manages your " friendly" URLs, and additional legitimate to map the friendly URLs into the correct resource.
For instance, if you possess
You will want to replace that along with:
To ensure that " widgets" and also " cogs" are written into right onto your pathway.
That you can do that as just as altering the " pages" table therefore:
ADJUST TABLE my_pages BRING COLUMN friendly_url VARCHAR(255) NULL; ADJUST TABLE my_pages BRING INDEX(friendly_url)
You’ll wish to index the column, because you’re about to be looking upward content by it.
In that case, alter your htaccess while follows:
RewriteRule articles\/(. *)$ document. phpfriendly_url=$1
Finallly, you will need a page referred to as that does the next:
if (! strlen($friendly_url))
header("Location: oops. php");
$friendly_url = mysql_real_escape_string($friendly_url);
mysql_query("SELECT * FROM pages WHERE friendly_url = '$friendly_url'");
// Now you have your page and you can present this.
Then make sure you alter your outdated file to 301 redirect to the new URL arrangement, so that people endeavoring to access articles by ID (including Google) get only the favorable format.
Hi – thanks fort he or she reply.
I do not own a custom CMS – Relating to about 20 PHP pages forming the leading site, with includes with the header and footer and I have another folder for the actual blog, which is usually WordPress.
What you could have written there seems a bit complicated for me – I got not even aware that having pages with a PHP extension was issues for SEO.
I’m about to have to research this a great deal further…
the extension itself isn’t detrimental to seo. The problem is that php sites usually are deprived of friendly URLs (e. g. about-our-web-design-company. php), rather having titles for instance about. php. All you have to do for ones site is help make your page titles include keywords.