預設沒有產品詳情頁,如何新建?

標籤: 

正在檢視 4 個帖子:1-4 (共 4 個帖子)
  • 作者
    帖子
  • my5395157
    • 文章數量: 2
    發帖數:1
    樓主
    @my5395157

    產品例表點進去 產品詳情頁是 404 沒有這個頁面,在後臺也沒有詳情頁面,模組上也沒有找到,請問如何新建?

    詩語
    管理員
    • 文章數量: 5,942
    發帖數:9997
    @feibisi

    要產品詳情頁,首先你得有產品,woocommerce 裡面沒產品就新建產品,有產品還 404 那就是你伺服器偽靜態有問題。

    my5395157
    • 文章數量: 2
    發帖數:1
    樓主
    @my5395157

    那可以問一下,繫結子目錄的偽靜態怎麼寫嗎?

    [ISAPI_Rewrite]

    CacheClockRate 3600

    RepeatLimit 32

    RewriteCond Host: ^cntianxin\.com$

    RewriteRule (.*) http\://www\.cntianxin\.com$1 [I,RP]

     

    這個是我根目錄的 httpd.ini

    詩語
    管理員
    • 文章數量: 5,942
    發帖數:9997
    @feibisi

    偽靜態是你伺服器方面的配置,只能自己試,下面是教程

    《偽靜態設定教程合集》

    Nginx 伺服器的 WordPress 通用的偽靜態規則是:

    location / {
    	index index.html index.php; 
    	if (-f $request_filename/index.html){ 
    		rewrite (.*) $1/index.html break; 
    	} 
    	if (-f $request_filename/index.php){ 
    		rewrite (.*) $1/index.php; 
    	} 
    	if (!-f $request_filename){ 
    		rewrite (.*) /index.php; 
    	} 
    } 
    
    rewrite /wp-admin$ $scheme://$host$uri/ permanent;
正在檢視 4 個帖子:1-4 (共 4 個帖子)
  • 哎呀,回覆話題必需登入。

話題資訊