| |
| |
|
|
|
|
| |
|
| |
|
| :: |
| Author |
Message |
rotwyla98
Joined: 16 Feb 2007 Posts: 6
|
Posted: Sat Mar 03, 2007 9:06 pm Post subject: General mod_rewrite help |
|
|
I have a page that is index.php?article=33 firstly, any way I can make it so that it is /article-title/ by reading from mysql the title of the article? If not, how can I change it to /article/33/
Thanks |
|
|
| Back to top |
|
 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14779
|
Posted: Sun Mar 04, 2007 4:49 pm Post subject: Re: General mod_rewrite help |
|
|
URL rewriting is performed in two steps, first the url rewriting itself, where we manage to transform the url outputted by the script, and then, mod_rewrite itself, where we set up some rewriterules to have our new url working.
So I cannot tel about your script without knowing a bit more about it.
What is for sure is, it will be more code changes to go for the following rewriting :
index.php?article=33 => /article-title/
Than this one :
index.php?article=33 => /article-title/33/
As the article=33 GET var suggest the scritp is selecting on IDs. You'd need to change the db settings to perform a select on the title instead.
to be able to use index.php?article=article-title
The second one should be easier to put together, but it depends on your script.
++ |
_________________ Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________
Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche |
|
| Back to top |
|
 |
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |