Si la virgola era per evitare la conversione in link
Allora questo l'htaccess della root:
Codice:
# Fix Favicon
AddType image/x-icon .ico
# Fix Xml Xls
AddType application/xml .xsl
AddType text/xml .xml
# Redirect Gallery Lite to Media gallery
Redirect 301 /forum/gallery/ http://darkwolf.altervista.org/forum/mgallery/
Redirect 301 /forum/signup.php http://darkwolf.altervista.org/forum/index.php?action=register
# Redirect /blog.php to blog/
Redirect 301 /blog/index.php http://darkwolf.altervista.org/
Redirect 301 /info.php http://darkwolf.altervista.org/forum/info.php
Redirect 301 /blog/info.php http://darkwolf.altervista.org/forum/info.php
Redirect 301 /script/info.php http://darkwolf.altervista.org/forum/info.php
# Inizio Redirect Mkportal to Forum
Redirect 301 /index.php http://darkwolf.altervista.org/forum/index.php
Redirect 301 /index.htm http://darkwolf.altervista.org/forum/index.php
Redirect 301 /index.html http://darkwolf.altervista.org/forum/index.php
Redirect 301 /guestbook.html http://darkwolf.altervista.org/forum/guestbook/
Redirect 301 /guestbook.php http://darkwolf.altervista.org/forum/guestbook/
Redirect 301 /pyg/index.php http://darkwolf.altervista.org/forum/guestbook/
Redirect 301 /contattami.html http://darkwolf.altervista.org/forum/contact/
Redirect 301 /contact.html http://darkwolf.altervista.org/forum/contact/
Redirect 301 /script/mailme.php http://darkwolf.altervista.org/forum/contact/
Redirect 301 /cerca.html http://darkwolf.altervista.org/forum/search/
Redirect 301 /downloads.html http://darkwolf.altervista.org/forum/tpmod/?dl
Redirect 301 /topsite.html http://darkwolf.altervista.org/forum/links/
Redirect 301 /antivir.html http://darkwolf.altervista.org/forum/index.php?topic=57.msg329#msg329
Redirect 301 /arcade.html http://darkwolf.altervista.org/forum/arcade/
Redirect 301 /berlusca.html http://darkwolf.altervista.org/forum/index.php?topic=22.msg47#msg47
# Fine Redirect Mkportal to Forum
# Inizio Redirect da fixare
Redirect 301 /hwu.html http://darkwolf.altervista.org/forum/hwu/
Redirect 301 /miw http://darkwolf.altervista.org/miw.html
Redirect 301 /tattoo http://darkwolf.altervista.org/script/tattoo
Redirect 301 /tattoo/ http://darkwolf.altervista.org/script/tattoo/
# Fine Redirect da fixare
# Inizio Redirect MKportal Download a Tinyportal Download
Redirect 301 /firmware.html http://darkwolf.altervista.org/forum/tpmod/?dl=cat4
Redirect 301 /rtech-last.html http://darkwolf.altervista.org/forum/tpmod/?dl=item9
Redirect 301 /anonymurl.html http://darkwolf.altervista.org/forum/tpmod/?dl=item39
# Fine Redirect MKportal Download a Tinyportal Download
# Send 404 to forum/
ErrorDocument 404 http://darkwolf.altervista.org/forum/index.php
#Other Redirect
# Start of URL rewriting code
RewriteEngine On
RewriteBase /
# Remove WWW from url
RewriteCond %{HTTP_HOST} ^www.darkwolf.altervista.org [NC]
RewriteRule ^(.*)$ http://darkwolf.altervista.org/$1 [R=301,L]
## Redirect mkportal to tinyportal
# Lingua
Rewritecond %{QUERY_STRinG} ^language=english [NC]
RewriteRule ^index\.php$ http://darkwolf.altervista.org/forum/index.php?language=english [R=301,L]
....
# Categorie Area Download
Rewritecond %{QUERY_STRinG} ^ind=downloads&op=section_view&idev=3$ [NC]
RewriteRule ^index\.php$ http://darkwolf.altervista.org/forum/tpmod/?dl=cat13 [R=301,L]
....
## Inizio codice AlterVista
# # av:php5-engine
AddHandler av-php5 .php
# av:PHP-upload
php_value upload_max_filesize 10M
php_value post_max_size 10M
php_value max_input_time 300
# PHP-upload
# # av:Toolbar
SetEnv AV_TOOLBAR 1
## Fine codice AlterVista
Ha effetto su tutto (es: *) eccetto sul forum, il quale ha a sua volta questo htaccess:
Codice:
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: March 11, 2009, 22:09
# MOD by DarkWolf
RewriteEngine on
RewriteBase /forum
# Rules for: guestbook
RewriteRule ^guestbook/$ ./index.php?action=guestbook [L,QSA]
# Rules for: hwu
RewriteRule ^hwu/$ ./index.php?action=hwu [L,QSA]
# Rules for: rules
RewriteRule ^regolamento/$ ./index.php?action=rules [L,QSA]
# Rules for: googlesearch
RewriteRule ^googlesearch.html$ ./index.php?action=googlesearch [L,QSA]
# Rules for: contact
RewriteRule ^contact/$ ./index.php?action=contact [L,QSA]
# Rules for: sitemap
RewriteRule ^sitemap.php$ ./index.php?action=sitemap [L,QSA]
RewriteRule ^sitemap-php/$ ./index.php?action=sitemap [L,QSA]
RewriteRule ^sitemap.xml$ ./index.php?action=sitemap;xml [L,QSA]
RewriteRule ^smf_sitemap.xml$ ./index.php?action=sitemap;xml [L,QSA]
# Rules for: rss-atom+wap2
RewriteRule ^news-rss.xml$ ./news-board/?action=.xml;?type=rss;sa=news;board=41.0;limit=10 [L,QSA]
RewriteRule ^news-atom.xml$ ./news-board/?action=.xml;?type=atom;sa=news;board=41.0;limit=10 [L,QSA]
RewriteRule ^post-rss.xml$ ./.xml/?type=rss;limit=10 [L,QSA]
RewriteRule ^post-atom.xml$ ./.xml/?type=atom;limit=10 [L,QSA]
RewriteRule ^wap2/$ ./index.php?wap2 [L,QSA]
# Rules for: tp-articles
RewriteRule ^page/([^/]+)/?$ ./index.php?pretty;page=$1 [L,QSA]
# Rules for: profiles
RewriteRule ^profile/([^/]+)/?$ ./index.php?pretty;action=profile;user=$1 [L,QSA]
# Rules for: actions
RewriteRule ^(activate|admin|announce|arcade|managegames|arcadecategory|arcadesettings|ban)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(boardrecount|buddy|calendar|cleanperms|collapse|contact|comment|convertentities)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(convertutf8|coppa|deletemsg|detailedversion|display|dlattach|dumpdb|editpoll)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(editpoll2|error|featuresettings|featuresettings2|findmember|help|helpadmin|im)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(jsoption|jsmodify|links|lock|lockVoting|login|login2|logout)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(maintain|manageattachments|manageboards|managecalendar|managesearch|markasread|membergroups|mergetopics)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(mgallery|mlist|modifycat|modifykarma|modlog|movetopic|movetopic2|news)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(notify|notifyboard|optimizetables|packageget|packages|permissions|pgdownload|pm)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(post|post2|postsettings|printpage|profile|profile2|quotefast|quickmod)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(quickmod2|recent|regcenter|register|register2|related|reminder|removetopic2)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(removeoldtopics2|removeoldtopics3|removepoll|repairboards|reporttm|reports|requestmembers|rules)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(search|search2|sendtopic|serversettings|serversettings2|sitemap|smileys|smstats)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(spellcheck|splittopics|stats|sticky|theme|trackip|about:mozilla|about:unknown)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(unread|unreadreplies|viewErrorLog|viewmembers|viewprofile|verificationcode|vote|viewquery)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(useremail|who|\.xml|tpadmin|forum|tpmod)/?$ ./index.php?pretty;action=$1 [L,QSA]
# Rules for: boards
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([0-9]*)/?$ ./index.php?pretty;board=$1.$2 [L,QSA]
# Rules for: topics
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1;topic=$2.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*|msg[0-9]*|new)/?$ ./index.php?pretty;board=$1;topic=$2.$3 [L,QSA]
# Rules for: arcade
RewriteRule ^arcade/index\.php$ index.php?action=arcade [L,QSA]
# beginning of directives for Apache Error Handling modification
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) /forum/index.php?action=error;code=404
ErrorDocument 400 /forum/index.php?action=error;code=400
ErrorDocument 401 /forum/index.php?action=error;code=401
ErrorDocument 402 /forum/index.php?action=error;code=402
ErrorDocument 403 /forum/index.php?action=error;code=403
ErrorDocument 404 /forum/index.php?action=error;code=404
ErrorDocument 405 /forum/index.php?action=error;code=405
ErrorDocument 406 /forum/index.php?action=error;code=406
ErrorDocument 407 /forum/index.php?action=error;code=407
ErrorDocument 408 /forum/index.php?action=error;code=408
ErrorDocument 409 /forum/index.php?action=error;code=409
ErrorDocument 410 /forum/index.php?action=error;code=410
ErrorDocument 411 /forum/index.php?action=error;code=411
ErrorDocument 412 /forum/index.php?action=error;code=412
ErrorDocument 413 /forum/index.php?action=error;code=413
ErrorDocument 414 /forum/index.php?action=error;code=414
ErrorDocument 415 /forum/index.php?action=error;code=415
ErrorDocument 416 /forum/index.php?action=error;code=416
ErrorDocument 417 /forum/index.php?action=error;code=417
ErrorDocument 500 /forum/index.php?action=error;code=500
ErrorDocument 501 /forum/index.php?action=error;code=501
ErrorDocument 502 /forum/index.php?action=error;code=502
ErrorDocument 503 /forum/index.php?action=error;code=503
ErrorDocument 504 /forum/index.php?action=error;code=504
ErrorDocument 505 /forum/index.php?action=error;code=505
# end of directives for Apache Error Handling modification
Grazie :)
PS: tutto funziona correttamente, volevo semplicemente evitare la dispersione di backlink contenenti www.