- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
htaccess:
DirectoryIndex index.php
RewriteEngine on
RewriteBase /
RewriteRule ^0.html$ style/index.php
RewriteRule ^1.html$ style/index.php?id=register
RewriteRule ^2.html$ style/index.php?id=download
RewriteRule ^3.html$ style/index.php?id=top_chars
RewriteRule ^4.html$ style/index.php?id=who_online
RewriteRule ^5.html$ style/index.php?id=top_zeny
RewriteRule ^6.html$ style/index.php?id=top_mvp
RewriteRule ^7.html$ style/index.php?id=top_pvp
RewriteRule ^8.html$ style/index.php?id=top_guild
RewriteRule ^9.html$ style/index.php?id=who_sell_buy
RewriteRule ^10.html$ style/index.php?id=first_class
php:
<?php
$url = $REQUEST_URI;
$url2 = strlen($url);
if($url2 > 14) {
header("location: ./");
exit;
}
?>
потому никто и не заметил :)
Для удобства пользователя, а не для защиты от инъекций.