PDA

View Full Version: Réiteach An bhfuil an htaccess ceart?



beaconsfield
09-10-10, 09:51
Gach mo sitemaps theipeann ar google stiúrthóir gréasáin lár. Ba mhaith liom a bheith cinnte go bhfuil mé úsáid i gceart. Htaccess? Integtared mé vbet le vbseo agus vbseo gineadóir léarscáil an tSuímh sna meán-am.


# Trácht an líne seo a leanas (cuir '#' ag an tús)
# Feidhmeanna a chur ar ceal mod_rewrite.
# Tabhair faoi deara: ní mór duit fós a chur ar ceal an hack i
# Rewrites an painéal rialú vBSEO moladh a stopadh.
RewriteEngine Ar

# Cheangal ar roinnt freastalaithe an treoir Rewritebase a bheidh le
# Cumasaithe (bain '#' ag an tús a ghníomhachtú)
# Tabhair faoi deara: nuair a chumas, caithfidh tú an cosán
# Le do root vb fhillteán (ie RewriteBase / fóraim /)
# RewriteBase /

RewriteRule vbenterprisetranslator_seo.php? vbet_lang = $ 1 & Athsheolta = [L, QSA]
RewriteRule vbenterprisetranslator_seo.php? vbet_lang = $ 1 & Athsheolta = / $ 2 [L, QSA]

% RewriteCond {REQUEST_URI}! (Admincp / | modcp / | vbseo_sitemap / | cron)
RewriteRule ^ ((cartlann /)?(.* \\. Php (/.*)?))$ vbenterprisetranslator_seo.php [L, QSA]

% RewriteCond {REQUEST_FILENAME}!-F
% RewriteCond {REQUEST_FILENAME}!-D
% RewriteCond {REQUEST_FILENAME} ^! (Admincp | modcp | clientscript | cpstyles | íomhánna) /
RewriteRule $ vbenterprisetranslator_seo.php [L, QSA]

# Ní mór an riail seo a bheith i ngach eolaire a gcaithfear tacaíocht a thabhairt (gan eolaire fóram féin)
% RewriteCond # {QUERY_STRING}! Vbet_outside = fíor
# RewriteRule ^(.*)$ $ 1? Vbet_outside = fíor [L, QSA]

% RewriteCond # {HTTP_HOST}! ^ Www \\. Mydomain \\. Com
# RewriteRule (.*) http://www.mydomain.com/ $ 1 [L, R = 301]

RewriteRule ^ ((urllist | sitemap_) .* \\ (xml |..? Txt) (\\ gz))? $ Vbseo_sitemap / vbseo_getsitemap.php léarscáil an tSuímh = $ 1 [L]

% RewriteCond {REQUEST_URI}! (Admincp / | modcp / | cron | vbseo_sitemap)
RewriteRule ^ ((cartlann /)?(.* \\. Php (/.*)?))$ vbseo.php [L, QSA]

% RewriteCond {REQUEST_FILENAME}!-F
% RewriteCond {REQUEST_FILENAME}!-D
% RewriteCond {REQUEST_FILENAME} /! (Admincp | modcp | clientscript | cpstyles | íomhánna) /
RewriteRule ^(.+)$ vbseo.php [L, QSA]

vBET
09-10-10, 16:09
Tá sé mícheart. Toisc go bhfuil sé síos go soiléir vBET ba cheart rialacha a leagan Just SULA rialacha chun an comhad vbseo.php. I do chás nach bhfuil sin. Ba chóir go Mapa Suímh riail a bheith os comhair na rialacha vBET.

beaconsfield
09-10-10, 16:14
Níorbh fhéidir leat le do thoil é socrú a dhéanamh dom?

beaconsfield
09-10-10, 17:03
An bhfuil sé ceart go leor anois?


# Trácht an líne seo a leanas (cuir '#' ag an tús)
# Feidhmeanna a chur ar ceal mod_rewrite.
# Tabhair faoi deara: ní mór duit fós a chur ar ceal an hack i
# Rewrites an painéal rialú vBSEO moladh a stopadh.
RewriteEngine Ar

# Cheangal ar roinnt freastalaithe an treoir Rewritebase a bheidh le
# Cumasaithe (bain '#' ag an tús a ghníomhachtú)
# Tabhair faoi deara: nuair a chumas, caithfidh tú an cosán
# Le do root vb fhillteán (ie RewriteBase / fóraim /)
# RewriteBase /

RewriteRule ^ ((urllist | sitemap_) .* \\ (xml |..? Txt) (\\ gz))? $ Vbseo_sitemap / vbseo_getsitemap.php léarscáil an tSuímh = $ 1 [L]

% RewriteCond {REQUEST_URI}! (Admincp / | modcp / | cron | vbseo_sitemap)
RewriteRule ^ ((cartlann /)?(.* \\. Php (/.*)?))$ vbseo.php [L, QSA]

RewriteRule vbenterprisetranslator_seo.php? vbet_lang = $ 1 & Athsheolta = [L, QSA]
RewriteRule vbenterprisetranslator_seo.php? vbet_lang = $ 1 & Athsheolta = / $ 2 [L, QSA]

% RewriteCond {REQUEST_URI}! (Admincp / | modcp / | vbseo_sitemap / | cron)
RewriteRule ^ ((cartlann /)?(.* \\. Php (/.*)?))$ vbenterprisetranslator_seo.php [L, QSA]

% RewriteCond {REQUEST_FILENAME}!-F
% RewriteCond {REQUEST_FILENAME}!-D
% RewriteCond {REQUEST_FILENAME} ^! (Admincp | modcp | clientscript | cpstyles | íomhánna) /
RewriteRule $ vbenterprisetranslator_seo.php [L, QSA]

# Ní mór an riail seo a bheith i ngach eolaire a gcaithfear tacaíocht a thabhairt (gan eolaire fóram féin)
% RewriteCond # {QUERY_STRING}! Vbet_outside = fíor
# RewriteRule ^(.*)$ $ 1? Vbet_outside = fíor [L, QSA]

% RewriteCond # {HTTP_HOST}! ^ Www \\. Mydomain \\. Com
# RewriteRule (.*) http://www.mydomain.com/ $ 1 [L, R = 301]

% RewriteCond {REQUEST_FILENAME}!-F
% RewriteCond {REQUEST_FILENAME}!-D
% RewriteCond {REQUEST_FILENAME} /! (Admincp | modcp | clientscript | cpstyles | íomhánna) /
RewriteRule ^(.+)$ vbseo.php [L, QSA]

beaconsfield
09-10-10, 17:49
Beidh cabhair ar bith a bheith appriciated i bhfad.

vBET
09-10-10, 18:10
Níl ar chor ar bith. Amháin níos mó ama - ní mór rialacha vBET bheith Just SULA riail a vbseo.php. Agus tá tú rialacha vBET TAR ÉIS riail vbseo.php ... Má tá aon mholadh conas is féidir linn cur síos a dhéanamh níos fearr go bhfuil rialacha vBET a bheith Just SULA rialacha chun an comhad vbseo.php - inis dúinn conas é sin a dhéanamh. Just ROIMH rialacha maidir le hacmhainn vbseo.php go bhfuil na rialacha a vbseo.php THÍOS rialacha a vBET. Ciallaíonn sé freisin nach bhfuil aon riail ar bith idir rialacha a vBET agus a vbseo.php

Seo é an chaoi ba chóir é breathnú do chomhad:


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

RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]

RewriteRule ^/?(af|sq|ar|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|de|el|iw|hi|hu|is|id|ga|it|ja|ko|lv|lt|mk|ms|mt|no|fa|pl|pt|ro|ru|sr|sk|sl|es|sw|sv|zh-TW|th|tr|uk|vi|cy|yi)/$ vbenterprisetranslator_seo.php?vbet_lang=$1&redirected= [L,QSA]
RewriteRule ^/?(af|sq|ar|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|de|el|iw|hi|hu|is|id|ga|it|ja|ko|lv|lt|mk|ms|mt|no|fa|pl|pt|ro|ru|sr|sk|sl|es|sw|sv|zh-TW|th|tr|uk|vi|cy|yi)/(.*)?$ vbenterprisetranslator_seo.php?vbet_lang=$1&redirected=/$2 [L,QSA]

RewriteCond %{REQUEST_URI} !(admincp/|modcp/|vbseo_sitemap/|cron)
RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbenterprisetranslator_seo.php [L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/
RewriteRule $ vbenterprisetranslator_seo.php [L,QSA]

#This rule must be in each directory which have to be supported (without forum directory itself)
#RewriteCond %{QUERY_STRING} !vbet_outside=true
#RewriteRule ^(.*)$ $1?vbet_outside=true [L,QSA]

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

RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap)
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]


Thoil, inis a dhéanann sé ag obair anois:)

beaconsfield
09-10-10, 19:00
Má bhí thuig mé do míniú a raibh mé in ann a bheith déanta air. Go raibh maith agat do chabhair.

Oibríonn sé anois. : D

vBET
10-10-10, 21:46
Breataine - taitneamh a bhaint as vBET: D

Automatic Translations (Powered by Google, Microsoft®, Yandex, SDL Language Cloud, IBM Watson and Apertium):
AfrikaansAlbanianArabicBelarusianBulgarianCatalanChineseCroatianCzechDanishDutchEnglishEstonianFilipinoFinnishFrenchGalicianGermanGreekHaitian CreoleHebrewHindiHungarianIcelandicIndonesianIrishItalianJapaneseKoreanLatvianLithuanianMacedonianMalayMalteseNorwegianPersianPolishPortugueseRomanianRussianSerbianSlovakSlovenianSpanishSwahiliSwedishTaiwaneseThaiTurkishUkrainianVietnameseWelshYiddish
Translated to other languages thanks to vBET Translator 4.10.1