Php 重写Problen.htaccess重定向301
我需要把一个网站上的重定向和一个有一些问题 我有这个原件 重新启动发动机 RewriteCond%{REQUEST_URI}\.json$[NC] 重写规则。*-[F,L] 重写规则配置/*-[F,L] 重写规则配置-[F,L] RewriteCond%{REQUEST_FILENAME}-f[NC,或] RewriteCond%{REQUEST_FILENAME}-d[NC] 重写规则^.+$-[L] 重写条件%{QUERY_STRING}^$[NC] 重写规则^[^?]+$/novo site/index.php?url 重写条件%{QUERY_STRING}^$[NC] 重写规则^$/novo site/index.php AddHandler php54 script.php suPHP_配置路径/主页/个性化玻璃1/site02/novo站点/ 我把最后4行放在这里,为这5页提供重定向 结果是: 重新启动发动机 RewriteCond%{REQUEST_URI}\.json$[NC] 重写规则。*-[F,L] 重写规则配置/*-[F,L] 重写规则配置-[F,L] RewriteCond%{REQUEST_FILENAME}-f[NC,或] RewriteCond%{REQUEST_FILENAME}-d[NC] 重写规则^.+$-[L] 重写条件%{QUERY_STRING}^$[NC] 重写规则^[^?]+$/novo site/index.php?url=$1 重写条件%{QUERY_STRING}^$[NC] 重写规则^$/novo站点/ AddHandler php54 script.php suPHP_配置路径/主页/个性化玻璃1/site02/novo站点/ 重定向301/sobre-a-personal-evolution/sobre/ 重定向301/fechamento-de-sacadas-e-varandas/produto/envidracamento/ 重定向301/revendedores autorizados/revendedores/ 重定向301/entre em contato/contato/ 重定向301/fotos de sacadas evolution/galerias/ 但当我请求页面时: 我收到这封信: 但对我来说正确的答案是: http://example.com/sobre/ 是第一个请求时我需要的最后一个 我尝试了一些改变,但没有任何效果 有人可以帮我解决这个问题,并解释如何解决这个问题,我需要了解如何解决这个问题 谢谢 来自: 匹配URL路径之外的其他路径信息将附加到目标URL 其他路径信息有些模糊,但我假设它们是指url参数 现在,这应该不会影响功能,所以我再次假设您只是不喜欢URL的外观 但是,由于您仍在使用mod_rewrite,因此可以实现与使用RewriteRule重定向相同的效果: 您不得将mod_重写规则与mod_别名规则混合使用,并在内部重写规则之前保留重定向规则:Php 重写Problen.htaccess重定向301,php,apache,.htaccess,mod-rewrite,redirect,Php,Apache,.htaccess,Mod Rewrite,Redirect,我需要把一个网站上的重定向和一个有一些问题 我有这个原件 重新启动发动机 RewriteCond%{REQUEST_URI}\.json$[NC] 重写规则。*-[F,L] 重写规则配置/*-[F,L] 重写规则配置-[F,L] RewriteCond%{REQUEST_FILENAME}-f[NC,或] RewriteCond%{REQUEST_FILENAME}-d[NC] 重写规则^.+$-[L] 重写条件%{QUERY_STRING}^$[NC] 重写规则^[^?]+$/novo sit
RewriteEngine on
RewriteRule \.json$ - [F,L,NC]
RewriteRule config(/|$) - [F,L,NC]
RewriteRule ^sobre-a-personal-evolution /sobre/ [L,NC,R=301]
RewriteRule ^fechamento-de-sacadas-e-varandas /produto/envidracamento/ [L,NC,R=301]
RewriteRule ^revendedores-autorizados /revendedores/ [L,NC,R=301]
RewriteRule ^entre-em-contato /contato/ [L,NC,R=301]
RewriteRule ^fotos-de-sacadas-evolution /galerias/ [L,NC,R=301]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^(.+)$ /novo-site/index.php?url=$1 [L,QSA]
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^$ /novo-site/ [L]
AddHandler php54-script .php
suPHP_ConfigPath /home/personalglass1/site02/novo-site/
RewriteEngine on
RewriteRule \.json$ - [F,L,NC]
RewriteRule config(/|$) - [F,L,NC]
RewriteRule ^sobre-a-personal-evolution /sobre/ [L,NC,R=301]
RewriteRule ^fechamento-de-sacadas-e-varandas /produto/envidracamento/ [L,NC,R=301]
RewriteRule ^revendedores-autorizados /revendedores/ [L,NC,R=301]
RewriteRule ^entre-em-contato /contato/ [L,NC,R=301]
RewriteRule ^fotos-de-sacadas-evolution /galerias/ [L,NC,R=301]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^(.+)$ /novo-site/index.php?url=$1 [L,QSA]
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^$ /novo-site/ [L]
AddHandler php54-script .php
suPHP_ConfigPath /home/personalglass1/site02/novo-site/