Aggiustamenti post installazione
Dando un occhio all'articolo mi sono trovato questo .htaccess:
Codice:
RewriteEngine On
# Require fully qualified domain
RewriteCond %{HTTP_HOST} !^www\.domain\.com [NC]
#RewriteCond %{HTTP_HOST} !^other\.domain\.com [NC]
RewriteRule ^(.*) http://www.domain.com/$1 [R=301,L]
RewriteRule ^$ [L,QSA]
RewriteRule ^content$ [L,QSA]
# OdiSEO render sitemap to any search engine
RewriteRule ^sitemap.xml$ odiseo_sitemap.php [L]
# Old vBulletin rewrite (maintains compatibility with OdiSEO disabled, can be removed later)
RewriteRule ^threads/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/page([0-9]+)?)) showthread.php?t=$1&page=$2&%{QUERY_STRING} [L]
RewriteRule ^forums/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/page([0-9]+)?)) forumdisplay.php?f=$1&page=$2&%{QUERY_STRING} [L]
# OdiSEO rewrite
RewriteRule ^[0-9]+(?:/?$|(?:-[^/]+))/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/page([0-9]+)?)) showthread.php?t=$1&page=$2&%{QUERY_STRING} [L]
RewriteRule ^([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/page([0-9]+)?)) forumdisplay.php?f=$1&page=$2&%{QUERY_STRING} [L]
# vBulletin rewrite
RewriteRule ^members/([0-9]+) member.php?u=$1&%{QUERY_STRING} [L]
RewriteRule ^blogs/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/page([0-9]+)?)) blog.php?u=$1&page=$2&%{QUERY_STRING} [L]
RewriteRule ^entries/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/page([0-9]+)?)) entry.php?b=$1&page=$2&%{QUERY_STRING} [L]
RewriteRule ^list/([^/]*/)([0-9]+) list.php?r=$1$2&%{QUERY_STRING} [L]
RewriteRule ^content/(.*) ?r=$1&%{QUERY_STRING} [L]
RewriteRule ^widget/config/([0-9]+) widget.php?r=config/$1&%{QUERY_STRING} [L]
quello di default è:
Codice:
RewriteEngine on
# If you are having problems or are using VirtualDocumentRoot, uncomment this line and set it to your vBulletin directory.
# RewriteBase /forum/
# If you are having problems with the rewrite from content/ to , uncomment this line to turn MultiViews off.
# Options -MultiViews
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
# Forum
RewriteRule ^threads/.* showthread.php [QSA]
RewriteRule ^forums/.* forumdisplay.php [QSA]
RewriteRule ^members/.* member.php [QSA]
RewriteRule ^blogs/.* blog.php [QSA]
RewriteRule ^entries/.* entry.php [QSA]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
# MVC
RewriteRule ^(?:(.*?)(?:/|$))(.*|$)$ $1.php?r=$2 [QSA]
# Check MVC result
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^(.*)$ - [NC,L]
RewriteRule ^(.*)$ - [R=404,L]
Volevo capire perchè è diverso a parte OdiSEO.