- Home
- Categorie
- La Community Connect.gt
- News Ufficiali da Connect.gt
- Non sono sicuro se è giusto
- 
							
							
							
							
							
Non sono sicuro se è giustoUso questo codice sul mio htaccess RewriteEngine On DirectoryIndex main.php RewriteBase / RewriteCond %{the_request} ^[A-Z]{3,9}\ /.*main\.php\ HTTP/ RewriteRule ^(.*)main\.php$ h ttp://alefoto\.it/$1 [l,r=301] RewriteCond %{HTTP_HOST} !^www\. RewriteRule ^(.*)$ h ttp://w ww.%{HTTP_HOST}/$1 [R=301,L]Il mio scopo e' cercare di portare questi indirizzi: 
 h ttp://w ww.alefoto.it/main.php
 h ttp://w ww.alefoto.it/index.php
 h ttp://alefoto.it/
 a
 h ttp://w ww.alefoto.it/Mi sembra che tutto funzioni solo che usando aluni tools online ho risultati diversi. Non vorrei incontrare problemi di reindirizzamento sbagliato con il solito Google . Mi potete verificare se' va bene? 
 
- 
							
							
							
							
							
L'ho modificato cosi': RewriteEngine On 
 DirectoryIndex main.php
 RewriteBase /
 RewriteCond %{the_request} ^[A-Z]{3,9}\ /.main.php\ HTTP/
 RewriteRule ^main.php$ / [R=301,L]
 RewriteRule ^index.php$ / [R=301,L]
 RewriteCond %{HTTP_HOST} !^www.
 RewriteRule ^(.)$ h ttp://w ww.%{HTTP_HOST}/$1 [R=301,L]