![]() |
[طلب] تعديل كود ملف .htaccess السلام عليكم ورحمة الله وبركاته يوجد لدي مشكلة في ملف الهاتكس اولا نقلت المنتدى من استضافة لاخرى وعند فتح المنتدى يظهر لي رسالة 404 قمت بمراسلة الاستضافة وقالوا لي يوجد خطا في ملف الهاتكس هذا هو ردهم اقتباس: Hello, This issue is being cause by the .htaccess file within the /vb/ directory. Please investigate your rewrite rules to correct the issue. Regards, Matt V Technical Support هذا هو المنتدى شبكة الوسيط التعليمية هذا هو الكود رمز PHP: # Comment the following line (add '#' at the beginning) # to disable mod_rewrite functions. # Please note: you still need to disable the hack in # the vBSEO control panel to stop url rewrites. RewriteEngine On # Some servers require the Rewritebase directive to be # enabled (remove '#' at the beginning to activate) # Please note: when enabled, you must include the path # to your root vB folder (i.e. RewriteBase /forums/) RewriteBase /vb #RewriteCond %{HTTP_HOST} !^www\.alwasett\.com #RewriteRule (.*) http://www.alwasett.com/vb/$1 [L,R=301] RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L] RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap|api\.php) RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !/(admincp|modcp|clientscript|cpstyles|images)/ RewriteRule ^(.+)$ vbseo.php [L,QSA] RewriteEngine On RewriteRule ^((urllist|sitemap).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L] # Turn on Expires and set default to 0 ExpiresActive On ExpiresDefault A0 # Set up caching on media files for 1 year (forever?) ExpiresDefault A29030400 Header append Cache-Control "public" # Set up caching on media files for 1 week ExpiresDefault A604800 Header append Cache-Control "public" # Set up 2 Hour caching on commonly updated files ExpiresDefault A7200 Header append Cache-Control "proxy-revalidate" # Force no caching for dynamic files ExpiresActive Off Header set Cache-Control "private, no-cache, no-store, proxy-revalidate, no-transform" Header set Pragma "no-cache" RewriteEngine on RewriteRule ^f.txt vbmaps.php?cat=d RewriteRule ^t([0-9]+).txt vbmaps.php?rss=d&page=$1 [L] RewriteRule ^tag([0-9]+).txt maptag.php?rss=d&page=$1 [L] |
الساعة الآن 02:57 PM |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.5.2 TranZ By
Almuhajir