// News / Brugbart Goes Modrewrite

Posted The: 15/06/2008 - AT: 3:41

Today i went through the trouble to anable Modrewrite for Brugbart. I might make additional modifications to my regular expressions later, to match even more URLs.

How it works

For those interested, i will be releasing an Article within a few days, explaining a good chunck about Modrewrite. I have no idea how useful this actualley is, since all the search engines i know, are able to index pages with URL parameters, and i cant say i've ever used "the url" for "easier remembering".

Maybe it increase your page relevancy if you include some keywords in the URL though. Include the following in a .htaccess file

RewriteEngine on
RewriteRule ^Articles/([0-9]*)/$ /?AID=$1

In my case this would redirect all requests for www.brugbart.com/Articles/xxxx/ to www.brugbart.com/?AID=xxxx. The rest is really basic stuff, like either giving a 404 error or 301 redirect when requests are made for the old URLs.

Stumble It!

Author: BlueBoden

Comments: [2]

// Comment / Technical Difficulties

The: 26/06/2008 - AT: 20:17

Et beskrivende billede.Brugbart is currently having some technical difficulties with the new URL system. I will be fixing broken links doing the next few days, if you find any broken links, you may post them here.

There also seam to be some problems with the database, the thing is i had a rather serious error when i visited the website today. Its unclear why this error occurred, i do however suspect that it has to do with an insert statement being executed while the table was in use. I'll try to use Insert delayed instead, and wait and see if the problem recurs.

Please don't hesitate to report such problems, either by mail, or as comments to this post.

Author: BlueBoden

Comment

// Comment / Relative Paths

The: 27/06/2008 - AT: 19:28

Et beskrivende billede.I've just fixed a problem where document relative paths would break the site, I'm now using root relative paths instead.

Author: BlueBoden

Comment

  1. HTML Tutorial
  2. CSS Tutorial
  3. XHTML Tutorial
  4. RSS Tutorial
  5. PHP Tutorial
  6. htaccess Tutorial
  7. Server Tutorial

Checked At:08:22

5 Guests

0 Users

Online doing the past 15 Minutes!

PageRanking.dk - Flere hits og højere PageRank - GRATIS tilmelding!

This page was created in 0.735261917114 seconds

Welcome Guest