-3

实际上我想在 opencart 中为我的站点地图页面添加元数据,那么我如何在站点地图页面中添加标题描述和关键字,请问在该页面中添加任何代码吗?

当我看到我的站点地图页面并在视图源中看到时,我的站点标题标签看起来像这样<title></title>,然后我看到这个标签没有任何单词,所以我想在那个标签之间添加一些标题

第二个问题关于

我需要更改网址

Mysite.com/productname

Mysite.com/category/brand/productname

4

1 回答 1

0

确切地。您需要重新提出问题并费心搜索此站点。

OpenCart Admin -> Catalog -> Categories -> Name -> Data Tab -> SEO Keyword:

品牌/类别(示例)绿洲/鞋子

OpenCart Admin -> Catalog -> Products -> Name -> Data Tab -> SEO Keyword:

??-产品名称(产品 ID)

56-red-trainers

Nginx:(.htaccess 与 Apache 类似,也与 Apache .htaccess 在启用 Opencart SEO Urls 后这已经是标准配置,nginx 需要手动工作)

server {
    listen  80;
    server_name site.com www.site.com;
    root /var/www/www.site.com/web;
    index index.php index.html index.htm;
    location /admin {
        index index.php;
    }
    location / {
        try_files $uri @opencart;
        # cat
        rewrite ^/oasis/shoes?$ /index.php?route=product/category&path=1 last;

        # product
        rewrite ^/oasis/shoes/(.*)$ /index.php?route=product/product&path=2&product_id=$1 last;
    }
    location @opencart {
        rewrite ^/(.+)$ /index.php?route=$1 last;
    }
    location = /favicon.ico {
        log_not_found off;
        access_log off;
    }
    location = /robots.txt {
        allow all;
        log_not_found off;
        access_log off;
    }         
    location ~* \.(engine|inc|info|ini|install|make|module|profile|test|po|sh|.*sql|theme|tpl(\.php)?|xtmpl)$|^(\..*|Entries.*|Repository|Root|Tag|Template)$|\.php_ {
        deny all;
    }
    location ~ /\. {
        deny all;
        access_log off;
        log_not_found off;
    }
    location ~*  \.(jpg|jpeg|png|gif|css|js|ico)$ {
        expires max;
        log_not_found off;
    }
    location ~ \.php$ {
        include /etc/nginx/fastcgi_params;
        fastcgi_pass    127.0.0.1:9000;
        fastcgi_param   SCRIPT_FILENAME $document_root$fastcgi_script_name;
    }
}

制作网址

site.com/oasis/shoes
site.com/oasis/shoes/56-red-trainers
于 2012-06-12T10:14:29.123 回答