2017-05-01 1 views
0

나는 하위 디렉토리에 wordpress를 intall로 업로드했습니다. 그것의 경로 public_html/revslider-standalone리디렉션이 너무 많습니다. htaccess를 사용하여 경로를 하위 폴더로 리디렉션

이 내가 브라우저에서이 URL을 열 때 http://greenlinerenovations.com/revslider-standalone

, 그것은 너무 많은 리디렉션을 말한다 전체 경로입니다. 아래 코드는 .htaccess에 대한 코드입니다.

RewriteEngine On 

RewriteCond %{REQUEST_FILENAME} !-d 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-l 

RewriteRule ^About+$ about.php 
RewriteRule ^FAQ+$ faq.php 
RewriteRule ^Contact+$ contact.php 
RewriteRule ^Gallery+$ gallery.php 
RewriteRule ^Areas-we-service+$ cities.php 


RewriteRule ^(([^/]+/)*[^.]+)$ servicesparse.php?name=$1 

Wordpress를 설치하려면 어떤 규칙을 추가하거나 수정해야합니까? htaccess 파일의 리디렉션이 필요하므로 제거 할 수 없습니다. 어쨌든 새로운 규칙을 추가 할 수 있습니까?

답변

2

사용 : RewriteCond

RewriteEngine On 

RewriteRule ^About$ about.php [NC,L] 
RewriteRule ^FAQ$ faq.php [NC,L] 
RewriteRule ^Contact$ contact.php [NC,L] 
RewriteRule ^Gallery$ gallery.php [NC,L] 
RewriteRule ^Areas-we-service$ cities.php [NC,L] 

RewriteCond %{REQUEST_FILENAME} !-d 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-l 
RewriteRule ^(([^/]+/)*[^.]+)$ servicesparse.php?name=$1 

정말 일을 마지막 규칙 RewriteRule

+1

전에. 고마워요 !! – user3288891

+0

내 htaccess에 무엇이 잘못되었는지 설명해 주시겠습니까? – user3288891

+0

'RewriteCond' 다음 첫 번째'RewriteRule'에만 적용됩니다. – Croises

관련 문제