- Home
- Categorie
- La Community Connect.gt
- News Ufficiali da Connect.gt
- dopo mod_rewrite trasferimento 301
-
dopo mod_rewrite trasferimento 301
Salve a tutti
devo fare un redirect permanente su tutto il mio sito circa 300 pagine,
che come struttura ha:
http://www.izzyweb.it/index.php?p=paginaa:
http://www.izzyweb.it/pagina.htmlla trasformazione degli url l'ho gia fatta con questo .htaccess ma non riesco a fare il redirect 301,
Mi potete dare una mano?????
Grazie
FabioRewriteEngine on RewriteBase / rewritecond %{http_host} ^izzyweb.it rewriterule ^(.*)$ http://www.izzyweb.it/$1 [R=301,NC] RewriteCond %{REQUEST_URI} !([^.]+)/ RewriteRule ^index\.(php|html|htm)$ / RewriteRule ^(.*).html$ index.php?p=$1
-
Nessuno mi può aiutare???????????????
-
ciao,
RewriteRule ^(.*).html$ index.php?p=$1&noredirect=1
index.php:
if (!$_GET noredirect) make301('http://sito.tld/$_GETp.html');(scusami, ho la tastiera incasinata :D)
-
Ho provato in tutti i modi ma mi rende questo errore nella index.php:
Parse error: syntax error, unexpected T_STRING in /web/htdocs/www.izzyweb.it/home/index.php on line 2
-
if (!$_GET['noredirect']) make301('http://sito.tld/' . $_GET['p']. '.html');
non potevo fare le parentesi quadre