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 編輯。
原因: 精簡
|