2012-05-16 62 views

回答

1

啓用mod_rewrite的,並通過httpd.conf的.htaccess,然後把這個代碼在你.htaccessDOCUMENT_ROOT目錄:

Options +FollowSymLinks -MultiViews 
# Turn mod_rewrite on 
RewriteEngine On 
RewriteBase/

RewriteCond %{ENV:REDIRECT_STATUS} 200 
RewriteRule^- [L] 

RewriteRule ^([^/]+)(/.+?)/?$ negocio$2.php?shopURL=$1 [L,QSA] 
0

在.htaccess中嘗試此操作

 
RewriteEngine on 

RewriteBase/

RewriteCond $1 !^(negocio) 
RewriteRule ^(.*)$ negocio/$1.php [L,QSA] 
+0

對不起。我認爲這個問題很混亂,我剛纔澄清了它。 – lisovaccaro