04.10.2009
( 5.1.8 , 5.1.8 ). , , .
(UrlRewrite) , , . , , , /fld/c.php :
/fld/c.php?id=15
:
/catalog/15.php
, , . , . .
: /bitrix/admin/urlrewrite_list.php.
2.0, . , URL, .
( API), . API, , , FTP, ( ).
:
1. - 404, , Apache ErrorDocument .htaccess:
ErrorDocument 404 /404.php,
/404.php, :
include_once( $_SERVER['DOCUMENT_ROOT']. '/bitrix/modules/main/include/urlrewrite.php' );
2. Apache mod_rewrite, (, .htaccess):
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !/bitrix/urlrewrite.php$
RewriteRule ^(.*)$ /bitrix/urlrewrite.php [L]
</IfModule>
.
1 - 1 2
| . |
1
2
|
. |
: 248053
:
3.44