I have a website with stories in it. I can have multiple types of stories within multiple categories like:
Oh man, oh man!
What you're asking for is not simple and need you to have a powerful computer, but the results are simply amazing.
Here's what I'd suggest to do:
ErrorDocument
redirection in vhost configuration. Mine looks like this: ErrorDocument 404 /404.php
;/404.php
with all the arguments (which bad URL and so on, dump $_SERVER
to see this). You have to test if there are only two expressions in the URL /
i.e. http://mysite.com/(expr1)/(expr2)/
404 Php
file). See query sample here./action/story-name-action/
? if so, click on the link".This a hard work, but it's both interesting and shows your skill. Very few websites do this (I just know google actually).
Here's a demo on my French table that could give you an overview of how it works:
mysql> SELECT * FROM job WHERE
SOUNDEX( description ) LIKE SOUNDEX('Machiniste cinéma');
+-------+--------------------+
| id | description |
+-------+--------------------+
| 14018 | Machiniste cinéma |
+-------+--------------------+
1 row in set (0.06 sec)
mysql> SELECT * FROM job WHERE
SOUNDEX( description ) LIKE SOUNDEX('Mchiniste cinéma');
+-------+--------------------+
| id | description |
+-------+--------------------+
| 14018 | Machiniste cinéma |
+-------+--------------------+
1 row in set (0.06 sec)
mysql> SELECT * FROM job WHERE
SOUNDEX( description ) LIKE SOUNDEX('Machnste cinema');
+-------+--------------------+
| id | description |
+-------+--------------------+
| 14018 | Machiniste cinéma |
+-------+--------------------+
1 row in set (0.06 sec)
mysql>