Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> Rewrite konta NetEasy.pl
PlayKiller
post 13.05.2010, 14:05:14
Post #1





Grupa: Zarejestrowani
Postów: 29
Pomógł: 3
Dołączył: 16.10.2008

Ostrzeżenie: (0%)
-----


Witam serdecznie, kupiłem hosting w NetEasy.pl i mam nie miły problem z mod_rewrite. Na serwerze jest zainstalowany i skonfigurowany, ale niestety nie chce poprawnie interpretować mojego .htaccess. Wygląda on następująco:

Kod
AddType text/x-component .htc

### PREVENT THIS FILE BEING VIEWED IN BROWSER
<Files .htaccess>
order allow,deny
deny from all
</Files>

### PREVENT DIRECTORY LISTING
IndexIgnore *

### REWRITE RULES
Options +FollowSymlinks
RewriteEngine On
RewriteOptions Inherit

### HOME Rule Define
RewriteRule ^home\.html$ news.php [N]
RewriteRule ^news-view-([0-9]+)\.html$ news.php?readmore=$1 [L]
RewriteRule ^news-cat\.html$ news_cats.php [N]

### ARTICLES Rule Define
RewriteRule ^articles\.html$ articles.php [N]
RewriteRule ^articles-cat-([0-9]+)\.html$ articles.php?cat_id=$1 [L]
RewriteRule ^read-article-([0-9]+)\.html$ readarticle.php?article_id=$1 [L]

### DOWNLOADS Rule Define
RewriteRule ^downloads\.html$ downloads.php [N]
RewriteRule ^downloads-cat-([0-9]+)\.html$ downloads.php?cat_id=$1 [L]
RewriteRule ^downloads-([0-9]+)-save-([0-9]+)\.html$ downloads.php?cat_id=$1&download_id=$2 [L]

### FAQ Rule Define
RewriteRule ^faq\.html$ faq.php [N]
RewriteRule ^faq-cat-([0-9]+)\.html$ faq.php?cat_id=$1 [L]

### WEBLINKS Rule Define
RewriteRule ^weblinks\.html$ weblinks.php [N]
RewriteRule ^weblinks-cat-([0-9]+)\.html$ weblinks.php?cat_id=$1 [L]
RewriteRule ^weblinks-([0-9]+)-view-([0-9]+)\.html$ weblinks.php?cat_id=$1&weblink_id=$2 [L]

### SEARCH Rule Define
RewriteRule ^search\.html$ search.php [N]
RewriteRule ^search-forum\.html$ search.php?stype=f [N]

### PHOTOGALLERY Rule Define
RewriteRule ^gallery\.html$ photogallery.php [N]
RewriteRule ^gallery-album-([0-9]+)\.html$ photogallery.php?album_id=$1 [L]
RewriteRule ^gallery-foto-([0-9]+)\.html$ photogallery.php?photo_id=$1 [L]
RewriteRule ^gallery-foto-view-([0-9]+)\.html$ showphoto.php?photo_id=$1 [L]

### MESSAGES Rule Define
RewriteRule ^messages\.html$ messages.php [N]

### MISC Rule Define
RewriteRule ^members\.html$ members.php [N]
RewriteRule ^contact\.html$ contact.php [N]
RewriteRule ^profile-([0-9]+)\.html$ profile.php?lookup=$1 [L]
RewriteRule ^group-profile-([0-9]+)\.html$ profile.php?group_id=$1 [L]
RewriteRule ^register\.html$ register.php [N]
RewriteRule ^lostpassword\.html$ lostpassword.php [N]
RewriteRule ^edit-profile\.html$ edit_profile.php [N]
RewriteRule ^print-news-([0-9]+)\.html$ print.php?type=N&item_id=$1 [L]
RewriteRule ^print-article-([0-9]+)\.html$ print.php?type=A&item_id=$1 [L]

### BLOCK BAD ROBOTS - These bots will see 403 error message
RewriteCond %{HTTP_USER_AGENT} ^BlackWidow [OR]
RewriteCond %{HTTP_USER_AGENT} ^Bot\ mailto:craftbot@yahoo.com [OR]
RewriteCond %{HTTP_USER_AGENT} ^ChinaClaw [OR]
RewriteCond %{HTTP_USER_AGENT} ^Custo [OR]
RewriteCond %{HTTP_USER_AGENT} ^DISCo [OR]
RewriteCond %{HTTP_USER_AGENT} ^Download\ Demon [OR]
RewriteCond %{HTTP_USER_AGENT} ^eCatch [OR]
RewriteCond %{HTTP_USER_AGENT} ^EirGrabber [OR]
RewriteCond %{HTTP_USER_AGENT} ^EmailSiphon [OR]
RewriteCond %{HTTP_USER_AGENT} ^EmailWolf [OR]
RewriteCond %{HTTP_USER_AGENT} ^Express\ WebPictures [OR]
RewriteCond %{HTTP_USER_AGENT} ^ExtractorPro [OR]
RewriteCond %{HTTP_USER_AGENT} ^EyeNetIE [OR]
RewriteCond %{HTTP_USER_AGENT} ^FlashGet [OR]
RewriteCond %{HTTP_USER_AGENT} ^GetRight [OR]
RewriteCond %{HTTP_USER_AGENT} ^GetWeb! [OR]
RewriteCond %{HTTP_USER_AGENT} ^Go!Zilla [OR]
RewriteCond %{HTTP_USER_AGENT} ^Go-Ahead-Got-It [OR]
RewriteCond %{HTTP_USER_AGENT} ^GrabNet [OR]
RewriteCond %{HTTP_USER_AGENT} ^Grafula [OR]
RewriteCond %{HTTP_USER_AGENT} ^HMView [OR]
RewriteCond %{HTTP_USER_AGENT} HTTrack [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Image\ Stripper [OR]
RewriteCond %{HTTP_USER_AGENT} ^Image\ Sucker [OR]
RewriteCond %{HTTP_USER_AGENT} Indy\ Library [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^InterGET [OR]
RewriteCond %{HTTP_USER_AGENT} ^Internet\ Ninja [OR]
RewriteCond %{HTTP_USER_AGENT} ^JetCar [OR]
RewriteCond %{HTTP_USER_AGENT} ^JOC\ Web\ Spider [OR]
RewriteCond %{HTTP_USER_AGENT} ^larbin [OR]
RewriteCond %{HTTP_USER_AGENT} ^LeechFTP [OR]
RewriteCond %{HTTP_USER_AGENT} ^Mass\ Downloader [OR]
RewriteCond %{HTTP_USER_AGENT} ^MIDown\ tool [OR]
RewriteCond %{HTTP_USER_AGENT} ^Mister\ PiX [OR]
RewriteCond %{HTTP_USER_AGENT} ^Navroad [OR]
RewriteCond %{HTTP_USER_AGENT} ^NearSite [OR]
RewriteCond %{HTTP_USER_AGENT} ^NetAnts [OR]
RewriteCond %{HTTP_USER_AGENT} ^NetSpider [OR]
RewriteCond %{HTTP_USER_AGENT} ^Net\ Vampire [OR]
RewriteCond %{HTTP_USER_AGENT} ^NetZIP [OR]
RewriteCond %{HTTP_USER_AGENT} ^Octopus [OR]
RewriteCond %{HTTP_USER_AGENT} ^Offline\ Explorer [OR]
RewriteCond %{HTTP_USER_AGENT} ^Offline\ Navigator [OR]
RewriteCond %{HTTP_USER_AGENT} ^PageGrabber [OR]
RewriteCond %{HTTP_USER_AGENT} ^Papa\ Foto [OR]
RewriteCond %{HTTP_USER_AGENT} ^pavuk [OR]
RewriteCond %{HTTP_USER_AGENT} ^pcBrowser [OR]
RewriteCond %{HTTP_USER_AGENT} ^RealDownload [OR]
RewriteCond %{HTTP_USER_AGENT} ^ReGet [OR]
RewriteCond %{HTTP_USER_AGENT} ^SiteSnagger [OR]
RewriteCond %{HTTP_USER_AGENT} ^SmartDownload [OR]
RewriteCond %{HTTP_USER_AGENT} ^SuperBot [OR]
RewriteCond %{HTTP_USER_AGENT} ^SuperHTTP [OR]
RewriteCond %{HTTP_USER_AGENT} ^Surfbot [OR]
RewriteCond %{HTTP_USER_AGENT} ^tAkeOut [OR]
RewriteCond %{HTTP_USER_AGENT} ^Teleport\ Pro [OR]
RewriteCond %{HTTP_USER_AGENT} ^VoidEYE [OR]
RewriteCond %{HTTP_USER_AGENT} ^Web\ Image\ Collector [OR]
RewriteCond %{HTTP_USER_AGENT} ^Web\ Sucker [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebAuto [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebCopier [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebFetch [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebGo\ IS [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebLeacher [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebReaper [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebSauger [OR]
RewriteCond %{HTTP_USER_AGENT} ^Website\ eXtractor [OR]
RewriteCond %{HTTP_USER_AGENT} ^Website\ Quester [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebStripper [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebWhacker [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebZIP [OR]
RewriteCond %{HTTP_USER_AGENT} ^Wget [OR]
RewriteCond %{HTTP_USER_AGENT} ^Widow [OR]
RewriteCond %{HTTP_USER_AGENT} ^WWWOFFLE [OR]
RewriteCond %{HTTP_USER_AGENT} ^Xaldon\ WebSpider [OR]
RewriteCond %{HTTP_USER_AGENT} ^Zeus
RewriteRule ^.* - [F,L]



Dodam jeszcze, że nie otrzymuje error 500. Po prostu nie działa. Z tego co wiem na serwerze zainstalowany jest Apache 2.2


Bardzo proszę o pomoc i pozdrawiam,
PlayKiller.
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 27.04.2025 - 06:17