Tekil mesaj gösterimi
Alt 11 Nisan 2023, 20:04   #12
Çevrimdışı
Regex
rgxadmn
Ruh HalimMesgul
Yanıt: vBSEO 3.6.0 ~ En Güvenilir ve Tertemiz Dosya!




compedan kullanıcısının gönderdiği mesajdan alıntı Mesajı göster
.htaccess dosyasını aşağıdaki gibidir.

bu şekildemi atılmalı
PHP Kod:   Kodu kopyalamak için üzerine çift tıklayın!
# 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 /

#RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com
#RewriteRule (.*) http://www.yourdomain.com/forums/$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] 

bu şekilmi düzenlenmeli ayrıca ssl kullanıyorum.
altına
RewriteCond %{HTTPS} !=açık
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
eklemelimiyim?
ve yourdomain yerine domain adımı ekleyeyimmi?
PHP Kod:   Kodu kopyalamak için üzerine çift tıklayın!
# 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 /

#RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com
#RewriteRule (.*) http://www.yourdomain.com/forums/$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]

RewriteCond %{HTTPS} !=açık
RewriteRule 
.* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L] 


Evet .htaccess HTTPS için yapılandırılmalıdır. vBSEO en son güncellendiğinde sonuçta SSL olayı yoktu, dolayısıyla dahili olarak bu kolaylığı sunmuyor.

.htaccess örneği aşağıdaki gibi olabilir. domaininiz\.com ve domaininiz.com kısımlarını düzenleyin.

PHP Kod:   Kodu kopyalamak için üzerine çift tıklayın!
# 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
RewriteCond 
%{HTTPS} off 
RewriteRule 
.* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] 
RewriteCond %{HTTP_HOST} !^www\. [NC] 
RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTP_HOST} !^www\.domaininiz\.com
RewriteRule 
(.*) http://www.domaininiz.com/$1 [R=301,L]

# 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 /

#RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com
#RewriteRule (.*) http://www.yourdomain.com/forums/$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] 

Mesaj içerikleri, TF üyelerine özeldir
Yanıtın tamamını görüntülemek için oturum açabilir veya üye olabilirsiniz.
__________________
  • When injustice becomes law, resistance becomes duty.
 
Alıntı ile Yanıt