Tekil mesaj gösterimi
Alt 11 Nisan 2023, 19:57   #11
Çevrimdışı
compedan
Bronze Üye
Yanıt: vBSEO 3.6.0 ~ En Güvenilir ve Tertemiz Dosya!




Regex kullanıcısının gönderdiği mesajdan alıntı Mesajı göster
.htaccess dosyasını doğru şekilde upload ettiğinize emin misiniz? @Bahtiyar mobil olduğu için anlatırken o kısmı hatalı belirtmiş. Dosyalarda htaccess klasörü var, o klasörü olduğu gibi atmayacaksınız. İçine gireceksiniz, içindeki .htaccess dosyasını forumunuzun kurulu olduğu ana dizine atacaksınız (cPanel ise, public_html; Plesk ise, httpdocs vs. içerisine). Yani admincp, index.php gibi dosyaların bulunduğu dizinle aynı yerde .htaccess olacak. Bunu kontrol ederek işlemi tekrarlayın, sorun olmayacaktır.

.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=$[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=$[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] 

 
Alıntı ile Yanıt