opencart apache配置 伪静态
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.)?$ index.php?route=$1 [L,QSA]
-=-------------------------------
配置文件
<VirtualHost *:80>
#php_admin_value open_basedir “/home/wwwroot/default:/tmp/:/var/tmp/:/proc/”
DocumentRoot “/www/upcosplay.com”
ServerAlias www.upcosplay.com
ServerName upcosplay.com
ErrorLog “/home/wwwlogs/IP-error_log”
CustomLog “/home/wwwlogs/IP-access_log” combined
<Directory “/www/upcosplay.com”>
SetOutputFilter DEFLATE
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
DirectoryIndex index.html index.php
本文详细介绍了如何在Apache服务器上为Opencart电商平台配置伪静态URL,通过使用.htaccess文件中的重写规则,使网站链接更加友好,提高SEO效果。
2156

被折叠的 条评论
为什么被折叠?



