You are here: Regular expression mod_rewrite (htaccess) « PHP Programming Language « IT news, forums, messages
Regular expression mod_rewrite (htaccess)

Posted by Geradeaus on 11/24/63 11:28

I use htaccess to rewrite the url using the following rules :

RewriteRule ^([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/([A-Za-z0-9-]+)?$
index.php?lang=$1&page=$2&id=$3

The only problem I have is when http://www.domain.com/admin is given,
the "admin" is used as $1. How can I define the rule for every word
given except "admin" ?

Thanks in advance!

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация