igor berger Posted July 13, 2007 Share Posted July 13, 2007 To prevent cononical duplication you need to rewrite index.php to the folder. If anyone has tried doing it, they must have realized of the infinite loop it creates. There is a solution! Check for server header request. RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/ RewriteRule ^index\.php$ http://www.travelinasia.net/ [R=301,nc] You can also doing the other way around folder to index.php Canonical duplication is very bad for search engines, one must point all canonical domains to an authoritative domain. Igor Link to comment https://forums.phpfreaks.com/topic/59871-indexphp-301-redirect-to-folder-issue/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.