RewriteRule ^/article/([a-zA-Z]+)\.html$ /article.php?article=$1
ne sam siguren no mislia che triabva \?

s malka modifikatsia
RewriteRule /article/([a-zA-Z0-9/]+)\.([a-zA-Z]+)$ /index.php\?a=$1&f=$2

tova shte prevarne

http://some.com/article/Test.html
na
http://some.com/index.php?a=Test&f=html

http://some.com/article/News.pdf
na
http://some.com/index.php?a=News&f=pdf


Koeto e tochno tova koeto mi triabva

kato se zapochna tozi thread niakoi znae li dobri tutorials za regular
expressions.


����� ����� wrote:

Peter An. Zyumbilev wrote:

Predi vreme i az se chudeh dali da ne si poigrai s tova - nakrai si
napravih
otdelni .php files vmesto index.php?include=file.inc.php i da go pipna s
mod_rewrite , zastoto vav manuala pisheshe che ste mi pretovari
procesora...

����� ���� ���� � �������������� ������� �� Apache, �� �� ��� ������
������ ������ ���� �� �� ������� ��������� �����, ����� �� �
���������� ����. ������ ������� � ��������� �, �� ��� ������� ��
����� ��������� "�����", ����������� ������ �� �� ����� �����. �� ��
�� ����� �������� ���������, �� ������ ������� �� ����� ����������
������ "�� ���". �������� �� ���������� ������ �����, �� ���� �����
��������� ����� �:

RewriteRule ^/article/([a-zA-Z]+)\.html$ /article.php?article=$1

� ������ ������������ ^ � $ �� �� ������ ������� ���������� ��
�������� �� ������ �� ��������� ���� ��� ���� ��� � URL-�. ����
������� � ������� ������ �� ���� "[^.]+", � �� �������� ".+", �� �� ��
�� ���� ���������� �� ������� � �������. ������, �� ������ ������� �
�������������� �� � ���� ����.

������ �� �� ������.

��������

============================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
============================================================================


  • lu... Yavor Shahpasov
    • ... Огнян Кулев
      • ... Peter An. Zyumbilev
        • ... Огнян Кулев
          • ... Yavor Shahpasov
            • ... Огнян Кулев
              • ... BIVOL ONLINE

Reply via email to