Big problème sur la V5 [Réglé]
MickaelFR Membre non connecté
Booster Fusée
-
Booster Fusée
- Voir le profil du membre MickaelFR
- Inscrit le : 20/01/2014
- Site internet
- Groupes :
Reprise du message précédent
Non. Je retente alors.MickaelFR Membre non connecté
Booster Fusée
-
Booster Fusée
- Voir le profil du membre MickaelFR
- Inscrit le : 20/01/2014
- Site internet
- Groupes :
.. Si je rajoute " www " devant mon URL sur n'importe quelle page, ça me met en erreur (racine serveur au lieu de la racine du site).Perso, moi ça m'est égal, mais très gênant pour les visiteurs qui utilisent le " www " .. Mes pages sont en erreur, donc les gens partent !
janus57 Membre non connecté
-
Booster Fusée
- Voir le profil du membre janus57
- Inscrit le : 07/12/2007
- Groupes :
-
Equipe Assistance
pour le moment j'ai pas de solution autre que celle donné et j'ai pas testé car j'ai pas de site dans un dossier (si 1 mais il est en sous-domaine donc pas de www).
Cordialement, janus57
MickaelFR Membre non connecté
Booster Fusée
-
Booster Fusée
- Voir le profil du membre MickaelFR
- Inscrit le : 20/01/2014
- Site internet
- Groupes :
janus57 Membre non connecté
-
Booster Fusée
- Voir le profil du membre janus57
- Inscrit le : 07/12/2007
- Groupes :
-
Equipe Assistance
sinon y a toujours la solution barbare de le renvoyer à l'accueil du site en attendant :
solution 1 :
Code TEXT :
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/ [R=301,L]
solution 2 :
Code TEXT :
RewriteCond %{HTTP_HOST} !^planet-truck\.fr$ [NC]
RewriteRule ^(.*)$ http://planet-truck.fr/ [R=301,L]
Cordialement, janus57
MickaelFR Membre non connecté
Booster Fusée
-
Booster Fusée
- Voir le profil du membre MickaelFR
- Inscrit le : 20/01/2014
- Site internet
- Groupes :
janus57 Membre non connecté
-
Booster Fusée
- Voir le profil du membre janus57
- Inscrit le : 07/12/2007
- Groupes :
-
Equipe Assistance
c'est pas logique ça, tu peu poster ton .htccess au complet avec la solution 1 qui redirige vers l'accueil.
Cordialement, janus57
MickaelFR Membre non connecté
Booster Fusée
-
Booster Fusée
- Voir le profil du membre MickaelFR
- Inscrit le : 20/01/2014
- Site internet
- Groupes :
Le voici :
Code TEXT :
# Disable signatures protection #
# Disable your Apache version number from showing up in HTTP headers for added security
<IfDefine !Free>
<IfModule ModSecurity.c>
ServerSignature Off
SecServerSignature ''
</IfModule>
</IfDefine>
# Hide directory listings #
Options -Indexes
Options +FollowSymLinks
Options -Multiviews
# Prevent viewing of .htaccess file #
<Files .htaccess>
order allow,deny
deny from all
</Files>
# Server protection #
<IfDefine !Free>
<IfModule mod_access.c>
# Do Not Track: Universal Third-Party Web Tracking Opt Out
# http://datatracker.ietf.org/doc/draft-mayer-do-not-track/
SetEnvIfNoCase DNT 1 DO_NOT_TRACK
# Protect against Apache HTTP Server Denial Of Service Vulnerability. CVE-2011-3192
SetEnvIf Range (,.*?){5,} bad-range=1
RequestHeader unset Range env=bad-range
</IfModule>
</IfDefine>
# HTTP Headers #
<IfDefine !Free>
<IfModule mod_headers.c>
# Enable keep-alive
Header set Connection keep-alive
# Disable your PHP version number from showing up in HTTP headers for added security.
Header unset X-Powered-By
# Tell the browser to attempt the HTTPS version first
Header set Strict-Transport-Security "max-age=31536000; includeSubDomains"
# Don't allow any pages to be framed externally - Defends against CSRF
Header set X-Frame-Options SAMEORIGIN
# Control Cross-Domain Policies
Header set X-Permitted-Cross-Domain-Policies "master-only"
# Turn on IE8-IE9 XSS prevention tools
Header set X-XSS-Protection "1; mode=block"
# Prevent mime based attacks
Header set X-Content-Type-Options "nosniff"
# Use this to force IE to hide that annoying browser compatibility button in the address bar.
# IE=edge means IE should use the latest (edge) version of its rendering engine.
# chrome=1 means IE should use the Chrome rendering engine if installed.
BrowserMatch MSIE ie
Header set X-UA-Compatible "IE=Edge"
# Disable server signature
Header set ServerSignature "Off"
Header set ServerTokens "Prod"
</IfModule>
</IfDefine>
# Rewrite rules #
RewriteEngine on
RewriteBase /
# Core #
RewriteRule ^user/pm-?([0-9]+)-?([0-9]{0,})-?([0-9]{0,})-?([0-9]{0,})-?([a-z_]{0,})\.php$ /site/user/pm.php?pm=$1&id=$2&p=$3"e=$4 [L,QSA]
RewriteRule ^admin/cache/([\w/_-]*)$ /site/admin/cache/index.php?url=/$1 [L,QSA]
RewriteRule ^admin/config/([\w/_-]*)$ /site/admin/config/index.php?url=/$1 [L,QSA]
RewriteRule ^admin/content/([\w/_-]*)$ /site/admin/content/index.php?url=/$1 [L,QSA]
RewriteRule ^admin/errors/([\w/_-]*)$ /site/admin/errors/index.php?url=/$1 [L,QSA]
RewriteRule ^admin/files/([\w/_-]*)$ /site/admin/files/index.php?url=/$1 [L,QSA]
RewriteRule ^admin/langs/([\w/_-]*)$ /site/admin/langs/index.php?url=/$1 [L,QSA]
RewriteRule ^admin/maintain/([\w/_-]*)$ /site/admin/maintain/index.php?url=/$1 [L,QSA]
RewriteRule ^admin/member/([\w/_-]*)$ /site/admin/member/index.php?url=/$1 [L,QSA]
RewriteRule ^admin/modules/([\w/_-]*)$ /site/admin/modules/index.php?url=/$1 [L,QSA]
RewriteRule ^admin/server/([\w/_-]*)$ /site/admin/server/index.php?url=/$1 [L,QSA]
RewriteRule ^admin/smileys/([\w/_-]*)$ /site/admin/smileys/index.php?url=/$1 [L,QSA]
RewriteRule ^admin/themes/([\w/_-]*)$ /site/admin/themes/index.php?url=/$1 [L,QSA]
RewriteRule ^syndication/([\w/_-]*)$ /site/syndication/index.php?url=/$1 [L,QSA]
RewriteRule ^user/([\w/-_]*)$ /site/user/index.php?url=/$1 [L,QSA]
# Modules rules #
# shoutbox #
RewriteRule ^shoutbox/([\w/_-]*)$ /site/shoutbox/index.php?url=/$1 [L,QSA]
# database #
RewriteRule ^database/([\w/_-]*)$ /site/database/index.php?url=/$1 [L,QSA]
# forum #
RewriteRule ^forum/forum-([0-9]+)-?([0-9]*)(\+?[^.]*)\.php$ /site/forum/forum.php?id=$1&p=$2 [L,QSA]
RewriteRule ^forum/topic-([0-9]+)-?([0-9]*)-?([0-9]*)-?([0-9]*)(\+?[^.]*)\.php$ /site/forum/topic.php?id=$1&pt=$2&idm=$3"e=$4 [L]
RewriteRule ^forum/cat-([0-9]+)(\+?[^.]*)\.php$ /site/forum/index.php?id=$1 [L,QSA]
# forum #
RewriteRule ^forum/([\w/_-]*)$ /site/forum/index.php?url=/$1 [L,QSA]
# gallery #
RewriteRule ^gallery/gallery-([0-9]+)-?([0-9]*)-?([0-9]*)(\+?[^.]*)\.php$ /site/gallery/gallery.php?cat=$1&id=$2&p=$3 [L,QSA]
# gallery #
RewriteRule ^gallery/([\w/_-]*)$ /site/gallery/index.php?url=/$1 [L,QSA]
# media #
RewriteRule ^media/media-([0-9]+)-?([0-9]*)-?([0-9]*)(\+?[^.]*)\.php$ /site/media/media.php?id=$1&cat=$2&p=$3 [L,QSA]
# media #
RewriteRule ^media/([\w/_-]*)$ /site/media/index.php?url=/$1 [L,QSA]
# online #
RewriteRule ^online/([\w/_-]*)$ /site/online/index.php?url=/$1 [L,QSA]
# pages #
RewriteRule ^pages/([a-z0-9-]+)$ /site/pages/pages.php?title=$1
# poll #
RewriteRule ^poll/poll-([0-9]+)-?([0-9]*)-?([0-9]*)\.php$ /site/poll/poll.php?id=$1&r=$2&p=$3 [L,QSA]
# stats #
RewriteRule ^stats/stats-([a-z]+)\.php$ /site/stats/stats.php?$1=1 [L,QSA]
# web #
RewriteRule ^web/([\w/_-]*)$ /site/web/index.php?url=/$1 [L,QSA]
# calendar #
RewriteRule ^calendar/([\w/_-]*)$ /site/calendar/index.php?url=/$1 [L,QSA]
# sitemap #
RewriteRule ^sitemap/([\w/_-]*)$ /site/sitemap/index.php?url=/$1 [L,QSA]
# QuestionCaptcha #
RewriteRule ^QuestionCaptcha/([\w/_-]*)$ /site/QuestionCaptcha/index.php?url=/$1 [L,QSA]
# ReCaptcha #
RewriteRule ^ReCaptcha/([\w/_-]*)$ /site/ReCaptcha/index.php?url=/$1 [L,QSA]
# contact #
RewriteRule ^contact/([\w/_-]*)$ /site/contact/index.php?url=/$1 [L,QSA]
# UrlUpdater #
RewriteRule ^calendar/calendar$ /site/calendar/ [L,R=301]
RewriteRule ^calendar/calendar-([0-9]+)-([0-9]+)-([0-9]+)-?([0-9]*).php$ /site/calendar/$3-$2-$1/ [L,R=301]
RewriteRule ^news/news.php$ /site/news/ [L,R=301]
RewriteRule ^news/news-0\+([^.]*).php$ /site/news/0-root/ [L,R=301]
RewriteRule ^news/news-0-([0-9]*)\+([^.]*).php$ /site/news/0-root/$1-$2/ [L,R=301]
RewriteRule ^news/news-1\+([^.]*).php$ /site/news/1-actualites-du-site/ [L,R=301]
RewriteRule ^news/news-1-([0-9]*)\+([^.]*).php$ /site/news/1-actualites-du-site/$1-$2/ [L,R=301]
RewriteRule ^news/news-2\+([^.]*).php$ /site/news/2-actualites-des-membres/ [L,R=301]
RewriteRule ^news/news-2-([0-9]*)\+([^.]*).php$ /site/news/2-actualites-des-membres/$1-$2/ [L,R=301]
RewriteRule ^news/news-3\+([^.]*).php$ /site/news/3-actualites-des-constructeurs/ [L,R=301]
RewriteRule ^news/news-3-([0-9]*)\+([^.]*).php$ /site/news/3-actualites-des-constructeurs/$1-$2/ [L,R=301]
RewriteRule ^news/news-4\+([^.]*).php$ /site/news/4-actualites-diverses/ [L,R=301]
RewriteRule ^news/news-4-([0-9]*)\+([^.]*).php$ /site/news/4-actualites-diverses/$1-$2/ [L,R=301]
RewriteRule ^download/download\.php$ /site/download/ [L,R=301]
RewriteRule ^download/download-1(\+?[^.]*)\.php$ /site/download/1-categorie-de-test/1-logo-du-module-telechargements [L,R=301]
RewriteRule ^download/file-1(\+?[^.]*)\.php$ /site/download/1-categorie-de-test/1-logo-du-module-telechargements [L,R=301]
RewriteRule ^download/count\.php?id=([0-9]*)$ /site/download/download/$1 [L,R=301]
RewriteRule ^download/category-0(-?[^.]*)\.php$ /site/download/0-root/ [L,R=301]
RewriteRule ^download/category-1(-?[^.]*)\.php$ /site/download/1-categorie-de-test/ [L,R=301]
RewriteRule ^shoutbox/shoutbox\.php$ /site/shoutbox/ [L,R=301]
RewriteRule ^web/web\.php$ /site/web/ [L,R=301]
RewriteRule ^web/web-2-6([^.]*)\.php$ /site/web/2-partenaires/6-lctn-le-carburant-de-votre-passion [L,R=301]
RewriteRule ^web/web-2-11([^.]*)\.php$ /site/web/2-partenaires/11-g-rom-technic [L,R=301]
RewriteRule ^web/web-2-14([^.]*)\.php$ /site/web/2-partenaires/14-jobtransport [L,R=301]
RewriteRule ^web/web-2-13([^.]*)\.php$ /site/web/2-partenaires/13-le-p-tit-bolide [L,R=301]
RewriteRule ^web/web-2-15([^.]*)\.php$ /site/web/2-partenaires/15-macadam-market [L,R=301]
RewriteRule ^web/web-0(-?[^.]*)\.php$ /site/web/0-root/ [L,R=301]
RewriteRule ^web/web-1(-?[^.]*)\.php$ /site/web/1-liens-des-membres/ [L,R=301]
RewriteRule ^web/web-2(-?[^.]*)\.php$ /site/web/2-partenaires/ [L,R=301]
RewriteRule ^calendar/calendar$ /site/calendar/ [L,R=301]
RewriteRule ^calendar/calendar-([0-9]+)-([0-9]+)-([0-9]+)-?([0-9]*).php$ /site/calendar/$3-$2-$1/ [L,R=301]
RewriteRule ^news/news.php$ /site/news/ [L,R=301]
RewriteRule ^news/news-0\+([^.]*).php$ /site/news/0-root/ [L,R=301]
RewriteRule ^news/news-0-([0-9]*)\+([^.]*).php$ /site/news/0-root/$1-$2/ [L,R=301]
RewriteRule ^news/news-1\+([^.]*).php$ /site/news/1-actualites-du-site/ [L,R=301]
RewriteRule ^news/news-1-([0-9]*)\+([^.]*).php$ /site/news/1-actualites-du-site/$1-$2/ [L,R=301]
RewriteRule ^news/news-2\+([^.]*).php$ /site/news/2-actualites-des-membres/ [L,R=301]
RewriteRule ^news/news-2-([0-9]*)\+([^.]*).php$ /site/news/2-actualites-des-membres/$1-$2/ [L,R=301]
RewriteRule ^news/news-3\+([^.]*).php$ /site/news/3-actualites-des-constructeurs/ [L,R=301]
RewriteRule ^news/news-3-([0-9]*)\+([^.]*).php$ /site/news/3-actualites-des-constructeurs/$1-$2/ [L,R=301]
RewriteRule ^news/news-4\+([^.]*).php$ /site/news/4-actualites-diverses/ [L,R=301]
RewriteRule ^news/news-4-([0-9]*)\+([^.]*).php$ /site/news/4-actualites-diverses/$1-$2/ [L,R=301]
RewriteRule ^download/download\.php$ /site/download/ [L,R=301]
RewriteRule ^download/download-1(\+?[^.]*)\.php$ /site/download/1-categorie-de-test/1-logo-du-module-telechargements [L,R=301]
RewriteRule ^download/file-1(\+?[^.]*)\.php$ /site/download/1-categorie-de-test/1-logo-du-module-telechargements [L,R=301]
RewriteRule ^download/count\.php?id=([0-9]*)$ /site/download/download/$1 [L,R=301]
RewriteRule ^download/category-0(-?[^.]*)\.php$ /site/download/0-root/ [L,R=301]
RewriteRule ^download/category-1(-?[^.]*)\.php$ /site/download/1-categorie-de-test/ [L,R=301]
RewriteRule ^shoutbox/shoutbox\.php$ /site/shoutbox/ [L,R=301]
RewriteRule ^web/web\.php$ /site/web/ [L,R=301]
RewriteRule ^web/web-2-6([^.]*)\.php$ /site/web/2-partenaires/6-lctn-le-carburant-de-votre-passion [L,R=301]
RewriteRule ^web/web-2-11([^.]*)\.php$ /site/web/2-partenaires/11-g-rom-technic [L,R=301]
RewriteRule ^web/web-2-14([^.]*)\.php$ /site/web/2-partenaires/14-jobtransport [L,R=301]
RewriteRule ^web/web-2-13([^.]*)\.php$ /site/web/2-partenaires/13-le-p-tit-bolide [L,R=301]
RewriteRule ^web/web-2-15([^.]*)\.php$ /site/web/2-partenaires/15-macadam-market [L,R=301]
RewriteRule ^web/web-0(-?[^.]*)\.php$ /site/web/0-root/ [L,R=301]
RewriteRule ^web/web-1(-?[^.]*)\.php$ /site/web/1-liens-des-membres/ [L,R=301]
RewriteRule ^web/web-2(-?[^.]*)\.php$ /site/web/2-partenaires/ [L,R=301]
# news #
RewriteRule ^news/([\w/_-]*)$ /site/news/index.php?url=/$1 [L,QSA]
# customization #
RewriteRule ^customization/([\w/_-]*(?:\.css)?)$ /site/customization/index.php?url=/$1 [L,QSA]
# newsletter #
RewriteRule ^newsletter/([\w/_-]*)$ /site/newsletter/index.php?url=/$1 [L,QSA]
# PHP and HTTP protections #
# Disable the HTTP TRACE Method
RewriteCond %{REQUEST_METHOD} ^TRACE
RewriteRule .* - [F]
# Block out use of illegal or unsafe characters in the HTTP Request
RewriteCond %{THE_REQUEST} ^.*(\r|\n|%0A|%0D).* [NC,OR]
# Block out use of illegal or unsafe characters in the Referer Variable of the HTTP Request
RewriteCond %{HTTP_REFERER} ^(.*)(<|>|'|%0A|%0D|%27|%3C|%3E|%00).* [NC]
RewriteRule .* - [F,L]
# Protect against PHP-CGI Remote Code Execution Bug. CVE-2012-1823
RewriteCond %{QUERY_STRING} ^(%2d|\-)[^=]+$ [NC]
RewriteRule .* - [F,L]
# Stop 'PHP Easter Eggs' from working, http://perishablepress.com/expose-php/
RewriteCond %{QUERY_STRING} \=PHP[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12} [NC,OR]
# Stop proc/self/environ?
RewriteCond %{QUERY_STRING} proc/self/environ [OR]
# Block out any script trying to set a mosConfig value through the URL
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
# Block out any script trying to base64_encode/decode content via URL
RewriteCond %{QUERY_STRING} base64_(en|de)code[^(]*\([^)]*\) [OR]
# Block out any script that includes a <script> tag in URL
RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|[|\%[0-9A-Z]{0,2})
RewriteRule .* - [F,L]
# File and SQL injections protections #
RewriteCond %{REQUEST_METHOD} GET
RewriteCond %{QUERY_STRING} (;|<|>|'|"|\)|%0A|%0D|%22|%27|%3C|%3E|%00).*(/\*|union|select|insert|cast|set|declare|drop|update|md5|benchmark) [NC,OR]
RewriteCond %{QUERY_STRING} [a-zA-Z0-9_]=http:// [OR]
RewriteCond %{QUERY_STRING} [a-zA-Z0-9_]=http%3A%2F%2F [OR]
RewriteCond %{QUERY_STRING} [a-zA-Z0-9_]=(\.\.//?)+ [OR]
RewriteCond %{QUERY_STRING} (localhost|loopback|127\.0\.0\.1) [NC,OR]
RewriteCond %{QUERY_STRING} (<|>|'|%0A|%0D|%27|%3C|%3E|%00) [NC]
RewriteRule .* - [F,L]
# Bandwith protection #
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://planet-truck.fr
RewriteRule .*upload/.*$ - [F]
# Stop hotlinking #
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://planet-truck.fr
RewriteRule \.(bmp|gif|jpe?g|png|swf)$ - [F,L,NC]
# Bots blocking protection #
# URL encoded HTML, see http://www.w3schools.com/tags/ref_urlencode.asp
RewriteCond %{HTTP_USER_AGENT} (<|>|'|%0A|%0D|%27|%3C|%3E|%00) [NC,OR]
# Address harvesters
RewriteCond %{HTTP_USER_AGENT} ^(autoemailspider|ExtractorPro) [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^E?Mail.?(Collect|Harvest|Magnet|Reaper|Siphon|Sweeper|Wolf) [NC,OR]
RewriteCond %{HTTP_USER_AGENT} (DTS.?Agent|Email.?Extrac) [NC,OR]
RewriteCond %{HTTP_REFERER} iaea\.org [NC,OR]
# Download managers
RewriteCond %{HTTP_USER_AGENT} ^(Alligator|DA.?[0-9]|DC\-Sakura|Download.?(Demon|Express|Master|Wonder)|FileHound) [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^(Flash|Leech)Get [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^(Fresh|Lightning|Mass|Real|Smart|Speed|Star).?Download(er)? [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^(Gamespy|Go!Zilla|iGetter|JetCar|Net(Ants|Pumper)|SiteSnagger|Teleport.?Pro|WebReaper) [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^(My)?GetRight [NC,OR]
# Image-grabbers
RewriteCond %{HTTP_USER_AGENT} ^(AcoiRobot|FlickBot|webcollage) [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^(Express|Mister|Web).?(Web|Pix|Image).?(Pictures|Collector)? [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Image.?(fetch|Stripper|Sucker) [NC,OR]
# "Gray-hats"
RewriteCond %{HTTP_USER_AGENT} ^(Atomz|BlackWidow|BlogBot|EasyDL|Marketwave|Sqworm|SurveyBot|Webclipping\.com) [NC,OR]
RewriteCond %{HTTP_USER_AGENT} (girafa\.com|gossamer\-threads\.com|grub\-client|Netcraft|Nutch) [NC,OR]
# Site-grabbers
RewriteCond %{HTTP_USER_AGENT} ^(eCatch|(Get|Super)Bot|Kapere|HTTrack|JOC|Offline|UtilMind|Xaldon) [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Web.?(Auto|Cop|dup|Fetch|Filter|Gather|Go|Leach|Mine|Mirror|Pix|QL|RACE|Sauger) [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Web.?(site.?(eXtractor|Quester)|Snake|ster|Strip|Suck|vac|walk|Whacker|ZIP) [NC,OR]
RewriteCond %{HTTP_USER_AGENT} WebCapture [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^DISCo\ Pump [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^EirGrabber [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Net\ Vampire [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^NetZIP [NC,OR]
# Tools
RewriteCond %{HTTP_USER_AGENT} ^(Dart.?Communications|Enfish|htdig|Java|larbin) [NC,OR]
RewriteCond %{HTTP_USER_AGENT} (FrontPage|Indy.?Library|RPT\-HTTPClient) [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^(libwww|lwp|libwww-perl.*|PHP|Python|www\.thatrobotsite\.com|webbandit|Wget|Zeus) [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^(Microsoft|MFC).(Data|Internet|URL|WebDAV|Foundation).(Access|Explorer|Control|MiniRedir|Class) [NC,OR]
# Unknown
RewriteCond %{HTTP_USER_AGENT} ^(Crawl_Application|Lachesis|Nutscrape) [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^[CDEFPRS](Browse|Eval|Surf) [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^(Demo|Full.?Web|Lite|Production|Franklin|Missauga|Missigua).?(Bot|Locat) [NC,OR]
RewriteCond %{HTTP_USER_AGENT} (efp@gmx\.net|hhjhj@yahoo\.com|lerly\.net|mapfeatures\.net|metacarta\.com) [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^(Industry|Internet|IUFW|Lincoln|Missouri|Program).?(Program|Explore|Web|State|College|Shareware) [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^(Mac|Ram|Educate|WEP).?(Finder|Search) [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^(Moz+illa|MSIE).?[0-9]?.?[0-9]?[0-9]?$ [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Mozilla/[0-9]\.[0-9][0-9]?.\(compatible[\)\ ] [NC,OR]
RewriteCond %{HTTP_USER_AGENT} NaverRobot [NC]
RewriteRule .* - [F,L]
# Error pages #
ErrorDocument 403 /site/user/error/403/
ErrorDocument 404 /site/user/error/404/
# Gzip compression #
<IfDefine !Free>
<IfModule mod_filter.c>
# Compress HTML, CSS, JavaScript, Text, XML and fonts
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
AddOutputFilterByType DEFLATE application/x-font
AddOutputFilterByType DEFLATE application/x-font-opentype
AddOutputFilterByType DEFLATE application/x-font-otf
AddOutputFilterByType DEFLATE application/x-font-truetype
AddOutputFilterByType DEFLATE application/x-font-ttf
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE font/opentype
AddOutputFilterByType DEFLATE font/otf
AddOutputFilterByType DEFLATE font/ttf
AddOutputFilterByType DEFLATE image/svg+xml
AddOutputFilterByType DEFLATE image/x-icon
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/xml
# Remove browser bugs (only needed for really old browsers)
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
<IfModule mod_headers.c>
Header append Vary User-Agent
</IfModule>
</IfModule>
</IfDefine>
# Expires Headers #
<IfDefine !Free>
<IfModule mod_expires.c>
ExpiresActive On
# Default expiration: 1 week after request
ExpiresDefault "access plus 1 week"
# CSS and JS expiration: 1 week after request
ExpiresByType text/css "access plus 1 week"
ExpiresByType text/javascript "access plus 1 week"
ExpiresByType text/x-javascript "access plus 1 week"
ExpiresByType application/javascript "access plus 1 week"
ExpiresByType application/x-javascript "access plus 1 week"
# Image files expiration: 1 month after request
ExpiresByType image/bmp "access plus 1 month"
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
ExpiresByType image/jp2 "access plus 1 month"
ExpiresByType image/pipeg "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType image/svg+xml "access plus 1 month"
ExpiresByType image/tiff "access plus 1 month"
ExpiresByType image/vnd.microsoft.icon "access plus 1 month"
ExpiresByType image/x-icon "access plus 1 month"
ExpiresByType image/ico "access plus 1 month"
ExpiresByType image/icon "access plus 1 month"
ExpiresByType text/ico "access plus 1 month"
ExpiresByType application/ico "access plus 1 month"
ExpiresByType image/vnd.wap.wbmp "access plus 1 month"
ExpiresByType application/vnd.wap.wbxml "access plus 1 month"
ExpiresByType application/smil "access plus 1 month"
# Audio files expiration: 1 month after request
ExpiresByType audio/basic "access plus 1 month"
ExpiresByType audio/mid "access plus 1 month"
ExpiresByType audio/midi "access plus 1 month"
ExpiresByType audio/mpeg "access plus 1 month"
ExpiresByType audio/x-aiff "access plus 1 month"
ExpiresByType audio/x-mpegurl "access plus 1 month"
ExpiresByType audio/x-pn-realaudio "access plus 1 month"
ExpiresByType audio/x-wav "access plus 1 month"
# Movie files expiration: 1 month after request
ExpiresByType application/x-shockwave-flash "access plus 1 month"
ExpiresByType x-world/x-vrml "access plus 1 month"
ExpiresByType video/x-msvideo "access plus 1 month"
ExpiresByType video/mpeg "access plus 1 month"
ExpiresByType video/mp4 "access plus 1 month"
ExpiresByType video/quicktime "access plus 1 month"
ExpiresByType video/x-la-asf "access plus 1 month"
ExpiresByType video/x-ms-asf "access plus 1 month"
</IfModule>
</IfDefine>
# Disable file etags #
<IfDefine !Free>
FileETag none
</IfDefine>
# Manual content #
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/ [R=301,L]Merci.
janus57 Membre non connecté
-
Booster Fusée
- Voir le profil du membre janus57
- Inscrit le : 07/12/2007
- Groupes :
-
Equipe Assistance
bah elle fonctionne très bien la redirection…
Code TEXT :
root@vps:~# curl -I http://www.planet-truck.fr/site/forum/index.php [u]HTTP/1.1 301 Moved Permanently[/u] Date: Thu, 26 May 2016 19:00:16 GMT Server: Apache [b][u]Location: http://planet-truck.fr/[/u][/b] Vary: Accept-Encoding Content-Type: text/html; charset=iso-8859-1
Cordialement, janus57
MickaelFR Membre non connecté
Booster Fusée
-
Booster Fusée
- Voir le profil du membre MickaelFR
- Inscrit le : 20/01/2014
- Site internet
- Groupes :
Édité par MickaelFR Le 26/05/2016 à 22h26
janus57 Membre non connecté
-
Booster Fusée
- Voir le profil du membre janus57
- Inscrit le : 07/12/2007
- Groupes :
-
Equipe Assistance
laisse moi deviner : tu utilise google chrome ?
Cordialement, janus57
MickaelFR Membre non connecté
Booster Fusée
-
Booster Fusée
- Voir le profil du membre MickaelFR
- Inscrit le : 20/01/2014
- Site internet
- Groupes :
Répondre
Vous n'êtes pas autorisé à écrire dans cette catégorie