hi guys,
With the help on a other forum I am playing with mod_rewrite.
In a folder called testfolder I have
# This .htaccess should sit beside the main index.php
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php?$1
And in my testfolder
$url = explode("/",$_SERVER['REQUEST_URI']);
$title2 = str_replace("-"," ",$url[2]);
And with $title2 I do the $query ..........title = '$title2'
To- do list
1 Now I need to think of all the special characters that can be part of a title and what to do with them.
2 Need to get it in the form of
http://www.mysite.com/article/this-would-be-the-title-of-220
http://www.mysite.com/interview/this-would-be-the-title-of-220
http://www.mysite.com/comments/this-would-be-the-title-of-220
Right now I have it like
http://www.mysite.com/index.php?page=article&id=220
I'll keep you posted