ma sinceramente nn so + ke mettere...:(
Visualizzazione Stampabile
ma sinceramente nn so + ke mettere...:(
lo so ke si tratta solo di .htaccess ma since nn so + come configurarlo...nn va in nessun modo...
Prova questo e facci sapere. Ciao
Citazione:
# 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\.ciao\.it\.penna
#RewriteRule (. http://www.ciao.it/penna/forum$1 [L,R=301]
RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
RewriteCond %{QUERY_STRING} !vbseourl=
RewriteCond %{REQUEST_URI} !(admincp/|modcp/|chat|cron)
RewriteRule ^(.*\.php(/.?)$ vbseo.php?vbseourl=$1 [L,QSA]
RewriteCond %{REQUEST_FILENAME} !\.(jpg|gif)$
RewriteRule ^(archive/.$ vbseo.php?vbseourl=$1 [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/
RewriteRule ^(.+)$ vbseo.php?vbseourl=$1 [L,QSA]
Invece con questo:
http:\\sub.esempio.it\ciao\forum
come deve impostare:
????Codice:#RewriteCond %{HTTP_HOST} !^www\.ciao\.it\.penna
#RewriteRule (. http://www.ciao.it/penna/forum$1 [L,R=301]
cmq devo togliere i #???
In questo modo. Ciao
Citazione:
#RewriteCond %{HTTP_HOST} !^www\.sub\.esempio\.it\.penna
#RewriteRule (. http://www.sub.esempio.it/penna/forum$1 [L,R=301]
Gli asterischi li lascio? xkè c'era scritto ke bisogna toglierli... :)
Alcuni asterischi hanno un significato ... :p
Vorrei delle ulteriori spiegazioni...Codice:# 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)
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]
Testo in rosso: va sostituito con il mio dominio...tutto ok...
Testo in verde: ma nn andrebbero tolti così la regola entra in funzione? se xò li tolg mi da errori vari, cioè nn mi mostra nulla nel browser...
Testo in arancione: esattamente a ke servirebbe?
- OK
- sì, bisogna togliere i cancelletti (viene anche detto nel file, in inglese: remove '#' at the beginning to activate)
- Dipende da molti fattori. Di solito si trova un file .htaccess nella cartella del forum e quindi la RewriteBase è sempre /. Va cambiato solo se genera errori (e significa che a livello server sono delle condizioni che impediscono il semplice RewriteBase /).