我正在尝试在本地机器上的opencart中设置seo url 。
我已经从管理系统设置中启用了 seo url 并将其设置为“是”
之后,在我的.htaccess
文件中添加以下行:
# 1.To use URL Alias you need to be running apache with mod_rewrite enabled.
# 2. In your opencart directory rename htaccess.txt to .htaccess.
# For any support issues please visit: http://www.opencart.com
Options +FollowSymlinks
# Prevent Directoy listing
Options -Indexes
# Prevent Direct Access to files
Order deny,allow
Deny from all
# SEO URL Settings
RewriteEngine On
RewriteBase /primebrand
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)\?*$ index.php?_route_=$1 [L,QSA]
在此之后,我设置了我的产品和类别的 seo 关键字。并重新启动了 Apache。
但它显示
403 forbidden
You don't have permission to access /primebrand/ on this server