( 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:
2. Apache mod_rewrite, (, .htaccess):
. :
, ID, ,
ID , , 234.html .html, : ,
. , ,
. ,
. , : about.html
ErrorDocument 404 /404.php
/404.php, :
include_once( $_SERVER['DOCUMENT_ROOT']. '/bitrix/modules/main/include/urlrewrite.php' );
<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. "" - " " - " "
2. " " :
: #^/sef_test/#
:
: /index.php ( , )
: .
.
3. /sef_test/
, http://localhost/sef_test/test.html
, , . : #^/news/([0-9]+)\.html(\?.*)?$
.html .php
: /about/news/detail.php?ID=$1
: #^(.+)\.html(\?.*)?$#
: $1.php
: #^/about.html(\?.*)?$#
: /about/index.php