Imam sledeci scenario:
domain.com/keyword1 hocu istu stranu da prepravim na domain.com/keyword2
Za da zadrzim google PR i ostale stvari treba da uradim 301 Permanent move.
Trenutno resenje:
.htaccess
Code:
RewriteRule ^(.*)commercial.html$ /keyword1.php [QSA,L]
RewriteRule ^(.*)residential.html$ /keyword2.php [QSA,L]
RewriteRule ^(.*).html$ /index.php?Page=$1 [L]
RewriteRule ^(.*)commercial.html$ /keyword1.php [QSA,L]
RewriteRule ^(.*)residential.html$ /keyword2.php [QSA,L]
RewriteRule ^(.*).html$ /index.php?Page=$1 [L]
ova dva .php fajla
Code:
<?php
// Permanent redirection
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.domain.com/keyword1-2.html");
exit();
?>
<?php
// Permanent redirection
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.domain.com/keyword1-2.html");
exit();
?>
Kako da izbegnem ova dva .php fajla?
Sta znace [QSA, L], R, O na kraju linije? Koje su opcije...
routing protocols enable routers to route routed protocols!