2017-05-01 10 views
0

私はintallにサブディレクトリにwordpressをulploadedしました。そのパスは私がブラウザでこのURLを開くとこれが http://greenlinerenovations.com/revslider-standaloneリダイレクトが多すぎます。 htaccessを使用してパスをサブフォルダにリダイレクト

フルパスです public_html/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

用途:本当に働いていた最後のルールRewriteRule

+1

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 

。ありがとう !! – user3288891

+0

私のhtaccessに何が間違っていたか説明できますか? – user3288891

+0

'RewriteCond'次の最初の' RewriteRule'に対してのみ動作します – Croises

関連する問題