هيلبرنت | Helpernt

هيلبرنت | Helpernt (https://www.helpernt.com/vb/index.php)
-   ركن شروحات الزين فورو XENFORO (https://www.helpernt.com/vb/forumdisplay.php?f=94)
-   -   [XF 2.x] : طريقة اضافة www لروابط المنتدى (https://www.helpernt.com/vb/showthread.php?t=8312)

abo-karim 11-30-2018 11:05 PM

طريقة اضافة www لروابط المنتدى
 
السلام عليكم ورحمه الله وبركاته
اولا الطريقة قم بشرحها الاخ هيلبرنت فى احدى المواضيع بركن استفسارات الزين فورو ةلاهميتها قمت بعمل لها موضوع لتثبيتها واظهارها حتى يراهم جميع متابعى ورواد المعهد واليوم سنشرح طريقة جعل منتدى الزينفورو او رابط منتداكم وبشكل اجبارى اضافة بروتوكول الاتصال وهو WWW حتى يبدء رابط موقعكم على هذا الشكل https://www.example.com بدلا من https://example.com ولعمل هذا يوجد طريقتان الطريقة الاولى لمن لايستخدم شهادة الامن والطريقة الثانية لمن يستحدم شهادة الامان او SSL

الخطوات
اولا : الكود الصحيح فى حال انك تريد ان تبدء الرابط بــــ www وانت مش مركب شهادة الامان يعنى الرابط سيبدء بــ http://www.yoursitename.com
كود:

RewriteCond %{HTTP_HOST} ^example\.com$
RewriteRule ^(.*)$ "http\:\/\/www\.example\.com\/$1" [R=301,L]



ثانية :
وانت مركب شهادة الامان و تريد ان تبدء الرابط بــــ www هنا الرابط سيبدء بــ https://www.yoursitename.com
كود:

RewriteCond %{HTTPS_HOST} ^example\.com$
RewriteRule ^(.*)$ "https\:\/\/www\.example\.com\/$1" [R=301,L]

طريقة وضع الكود
- فى ملف الهاتكس htaccess ابحث RewriteEngine On ثم قم بوضع الكود اسفله
- او قم بوضعه كما بالصوره.


لاتنسى تغيير مايلزم مثل example الى اسم موقعك
و
.com الى امتداد الدومين الخاص بك

MesterPerfect 12-01-2018 02:54 AM

رد: طريقة اضافة www لروابط المنتدى
 
جزاك الله خيرا كثيرا أخي وبورك فيك

هيلبرنت 12-01-2018 07:20 PM

رد: طريقة اضافة www لروابط المنتدى
 
اخيرا شوفت ليه موضوع بيتنقل هههههههههههه


بوركت يا ابو كريم على النقل

هيلبرنت 12-15-2018 07:19 PM

رد: طريقة اضافة www لروابط المنتدى
 
شكرا لكم ياشباب

hr7xx 12-22-2018 09:17 PM

رد: طريقة اضافة www لروابط المنتدى
 
يعطيك العافية ابوكريم تم التجربة مع شهادة الامان ..

MesterPerfect 12-23-2018 04:28 PM

رد: طريقة اضافة www لروابط المنتدى
 
قمت بفعلها أخي الآن ولم يحدث شيء
هل تحتاج وقت أو مذا
هذه هي معلومات ملف الهاتكس للتأكد

كود:

# Mod_security can interfere with uploading of content such as attachments. If you
# cannot attach files, remove the "#" from the lines below.
#<IfModule mod_security.c>
# SecFilterEngine Off
# SecFilterScanPOST Off
#</IfModule>

ErrorDocument 401 default
ErrorDocument 403 default
ErrorDocument 404 default
ErrorDocument 405 default
ErrorDocument 406 default
ErrorDocument 500 default
ErrorDocument 501 default
ErrorDocument 503 default

<IfModule mod_rewrite.c>
 RewriteEngine On
RewriteCond %{HTTPS_HOST} ^mx-blind\.com$
RewriteRule ^(.*)$ "https\:\/\/www\.mx-blind\.com\/$1" [R=301,L]

 # If you are having problems with the rewrite rules, remove the "#" from the
 # line that begins "RewriteBase" below. You will also have to change the path
 # of the rewrite to reflect the path to your XenForo installation.
 #RewriteBase /xenforo

 RewriteCond %{REQUEST_FILENAME} -f [OR]
 RewriteCond %{REQUEST_FILENAME} -l [OR]
 RewriteCond %{REQUEST_FILENAME} -d
 RewriteRule ^.*$ - [NC,L]
 RewriteRule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml|robots\.txt) - [NC,L]
 RewriteRule ^.*$ index.php [NC,L]
</IfModule>

وهذا هو رابط موقعي

https://mx-blind.com/
تحياتي

هيلبرنت 12-23-2018 08:27 PM

رد: طريقة اضافة www لروابط المنتدى
 
احذف اللى جوه ملف الهاتكس ثم ضع هذا
كود:

#        Mod_security can interfere with uploading of content such as attachments. If you
#        cannot attach files, remove the "#" from the lines below.
#<IfModule mod_security.c>
#        SecFilterEngine Off
#        SecFilterScanPOST Off
#</IfModule>

ErrorDocument 401 default
ErrorDocument 403 default
ErrorDocument 404 default
ErrorDocument 405 default
ErrorDocument 406 default
ErrorDocument 500 default
ErrorDocument 501 default
ErrorDocument 503 default

<IfModule mod_rewrite.c>
        RewriteEngine On

        #        If you are having problems with the rewrite rules, remove the "#" from the
        #        line that begins "RewriteBase" below. You will also have to change the path
        #        of the rewrite to reflect the path to your XenForo installation.
        #RewriteBase /xenforo

        RewriteCond %{HTTPS_HOST} ^mx-blind\.com$
    RewriteRule ^(.*)$ "https\:\/\/www\.mx-blind\.com\/$1" [R=301,L]
        RewriteCond %{REQUEST_FILENAME} -f [OR]
        RewriteCond %{REQUEST_FILENAME} -l [OR]
        RewriteCond %{REQUEST_FILENAME} -d
        RewriteRule ^.*$ - [NC,L]
        RewriteRule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml|robots\.txt) - [NC,L]
        RewriteRule ^.*$ index.php [NC,L]
</IfModule>


MesterPerfect 12-23-2018 09:11 PM

رد: طريقة اضافة www لروابط المنتدى
 
اقتباس:

المشاركة الأصلية كتبت بواسطة هيلبرنت (المشاركة 24586)
احذف اللى جوه ملف الهاتكس ثم ضع هذا
كود:

#    mod_security can interfere with uploading of content such as attachments. If you
#    cannot attach files, remove the "#" from the lines below.
#<ifmodule mod_security.c>
#    secfilterengine off
#    secfilterscanpost off
#</ifmodule>

errordocument 401 default
errordocument 403 default
errordocument 404 default
errordocument 405 default
errordocument 406 default
errordocument 500 default
errordocument 501 default
errordocument 503 default

<ifmodule mod_rewrite.c>
    rewriteengine on

    #    if you are having problems with the rewrite rules, remove the "#" from the
    #    line that begins "rewritebase" below. You will also have to change the path
    #    of the rewrite to reflect the path to your xenforo installation.
    #rewritebase /xenforo

    rewritecond %{https_host} ^mx-blind\.com$
    rewriterule ^(.*)$ "https\:\/\/www\.mx-blind\.com\/$1" [r=301,l]
    rewritecond %{request_filename} -f [or]
    rewritecond %{request_filename} -l [or]
    rewritecond %{request_filename} -d
    rewriterule ^.*$ - [nc,l]
    rewriterule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml|robots\.txt) - [nc,l]
    rewriterule ^.*$ index.php [nc,l]
</ifmodule>


نفس الشيء أخي لم تزبط
وأيضا جرب الموقع من عنديك للتأكد ربما لدي مشكلة في المتصفح


الساعة الآن 01:35 PM

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd. TranZ By Almuhajir