
Postat în original de
Krumel
artson.ro/hi-fi/ .vs artson.ro/nad-c555.html care e diferenta dintre cele 2?
OK. Am inteles. Stiam ca e mai OK sa pun produsele in forma: site.ro/categorie/produs.html decat site.ro/produs.html...
Din pacate nu am realizat eu structura initiala a url-urilor. Site-ul l-am "mostenit" construit in forma asta. O astfel de schimbare a structurii l-ar afecta negativ pe termen scurt. Ar trebui facut un redirect 301 de la varianta actuala catre varianta cu numele categoriei in url.
In admin-ul modulului SEO vad asta:
"IMPORTANT NOTE: Modifying your extension type once your existing cdseo urls have been used and indexed may result in broken links. You are highly advised to change this setting upon initial install and then leave unchanged. " 
PS. Ar trebui facut un redirect 301 din .htaccess astfel incat sa fie inserata si categoria in url. La capitolul .htaccess nu stau foarte bine. Din pacate modulul de SEO (CDSEOPRO) are drepturi de scriere pentru acest fisier pentru a putea functiona. Adaugarea unei noi linii este posibila ? Modulul nu o va elimina cand se updateaza un produs ?
Modulul nu are posibilitatea efectuarii acestui tip de redirect. Singura setare posibila este site.ro/produs.html sau site.ro/produs/.
Codul actual arata cam asa:
Cod:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^xml_sitemap\.xml$ xml_sitemap.php [L]
</IfModule>
# ------------------------------------
# CDSEO Pro
# ------------------------------------
# This directory index is recommended to replace the
# x-cart default within this .htaccess file
DirectoryIndex home.php index.html index.php
# Enable mod rewrite engine
RewriteEngine On
RewriteCond %{HTTP_HOST} ^xxxxx.ro
RewriteRule (.*) http://www.xxxxx.ro/$1 [R=301,L]
# .htpasswd protection
# May be required if your htpasswd files are located below document root (i.e. cpanel)
# Remove # at the beginning of this line if your unable to access password protected folders:
#ErrorDocument 401 "Unauthorized"
# Some servers require this Options directive to be disabled
# Remove # at the beginning of this line to disable:
#Options -Multiviews
# Some servers require the Rewritebase directive to be enabled
# Remove # at the beginning of this line to enable:
#RewriteBase /xcart/
RewriteCond %{REQUEST_URI} !(/admin/|/provider/)
RewriteCond %{REQUEST_FILENAME} !\.(jpg|gif|php)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ cdseopro.php
# ------------------------------------
# / CDSEO Pro
# ------------------------------------
Stie cineva cum se poate face redirect 301 site.ro/produs.html ==>>> site.ro/categorie/produs.html ??