SEO mod: canonical links

Would like to see canonical links feature implemented in SEO mod with future release of cs-cart!

There is no need for a mod for that. You can easily do it with htaccess in 3 mins.

Все SEO можно делать ручками, но для этого и пошлина взимается с юзера за использование платных скриптов, чтобы все было удобно и безопасно обновляемо с сохранением настроек.

Такими темпами можно в итоге начать новую ветку скрипта, как сделали post-nuke в свое время :slight_smile:

Вова, может покажешь пример каконической записи в .htaccess?


Name is Alexey, btw…

RewriteCond %{HTTP_HOST} ^www.cctvultra\.com$ [NC]
RewriteRule ^(.*)$$1 [R=301,L]
RewriteCond %{HTTPS_HOST} ^www.cctvultra\.com$ [NC]
RewriteRule ^(.*)$$1 [R=301,L]

Change domain to your own. Note that I am removing WWW and having my links as: http://cctv

The whole htaccess:

DirectoryIndex index.html index.php

SetOutputFilter DEFLATE

Header unset ETag
FileETag none

ExpiresActive on
ExpiresByType image/png "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/ico "access plus 1 month"
ExpiresByType text/css "access plus 1 month"
ExpiresByType application/x-javascript "access plus 1 month"
ExpiresByType application/javascript "access plus 1 month"
ExpiresByType image/icon "access plus 1 month"
ExpiresByType image/x-icon "access plus 1 month"
ExpiresByType text/plain "access plus 1 month"

Header set Expires "Fri, 15 Apr 2011 20:00:00 GMT"

RewriteEngine on

RewriteCond %{HTTP_HOST} ^www.cctvultra\.com$ [NC]
RewriteRule ^(.*)$$1 [R=301,L]
RewriteCond %{HTTPS_HOST} ^www.cctvultra\.com$ [NC]
RewriteRule ^(.*)$$1 [R=301,L]

RewriteBase /

RewriteCond %{REQUEST_FILENAME} !\.(png|gif|ico|swf|jpe?g|js|css)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php?sef_rewrite=1 [L,QSA]

RewriteCond %{REQUEST_FILENAME} .*\/catalog\/.*
RewriteCond %{REQUEST_FILENAME} -d
RewriteCond %{REQUEST_FILENAME}/index.html !-f
RewriteRule . index.php?sef_rewrite=1 [L,QSA]

ignore me

Why bump a post that is 6 months old without adding any content or value? Very annoying!