查看單個文章
  #4  
舊 2019-10-09, 09:46 PM
jimhuang jimhuang 目前離線
普通會員
 
註冊日期: 2003-10-23
文章: 67
預設

Hi Chennien

可以指導一下怎麼改嗎?

.htaccesss內容如下:

# URL rewrite rules
<IfModule mod_rewrite.c>
RewriteEngine On


## Domain.com/{link-type}/{title-of-link}-{link-id}.{html|.htm|.php}
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.*)/(.*)([/]*)\.(.*)$ index.php?controller=details&idLink=$2 [QSA,NC,L]

## Domain.com/{link-type}/{title-of-link}-{link-id}
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.*)/(.*)([/]*)$ index.php?controller=details&idLink=$2 [QSA,NC,L]


## Domain.com/{title-of-link}-{link-id}.{html|.htm|.php}
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.*)([/]*)\.(.*)$ index.php?controller=details&idLink=$1 [QSA,NC,L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^detail.php index.php?controller=system&action=detailsredirect&id=$1 [QSA,NC,L]


</IfModule>


Jim
感謝!

此篇文章於 2019-10-09 09:56 PM 被 jimhuang 編輯。 原因: 精簡
回覆時引用此篇文章