| |
| |
|
|
|
|
| |
|
| |
|
| :: |
| Author |
Message |
emielvenlo PR0


Joined: 21 Jan 2007 Posts: 79
|
|
| Back to top |
|
 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14403
|
Posted: Fri Apr 06, 2007 11:58 am Post subject: Re: Need help making a rewrite rule |
|
|
You just need to add the underscore ("_" => [a-z0-9_]) in the possible matches :
| Code: | | RewriteRule ^mkportal/modules/docs/([a-z0-9_]+)\.html /mkportal/modules/docs/index.php?show=$1 [QSA,L] |
or even :
| Code: | | RewriteRule ^mkportal/modules/docs/([a-z0-9_-]+)\.html /mkportal/modules/docs/index.php?show=$1 [QSA,L] |
To add hyphens ("-").
And if it's a static rewriting (not title injection), then you'd rather go for :
| Code: | | RewriteRule ^mkportal/modules/docs/sample_([0-9]+)\.html /mkportal/modules/docs/index.php?show=sample_$1 [QSA,L] |
The NC tag could be wise to add ([QSA,L,NC]) in case you have to deal with capital letters (sample vs SAMPLE).
++ |
_________________ 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 |
|
 |
emielvenlo PR0


Joined: 21 Jan 2007 Posts: 79
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14403
|
|
| Back to top |
|
 |
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |