मैं यहाँ किया गया है से एक विशिष्ट फ़ाइल को कैसे बाहर: How to exclude a specific file in htaccessएक RewriteRule
और यहाँ: exclude files from rewrite rule in .htaccess
लेकिन न तो काम किया। मैं गलत क्या कर सकता हूँ?
.htaccess फाइल:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^wp-content(/.*|)$ - [L] # don't take any action
RewriteRule ^wp-admin(/.*|)$ - [L] # don't take any action
RewriteRule ^wp-includes(/.*|)$ - [L] # don't take any action
RewriteCond %{REQUEST_URI} !^/pureplantessentials\.html$
RewriteRule ^moreinfo/(.*)$ http://www.kgstiles.com/moreinfo$1 [R=301]
RewriteRule ^healthsolutions/(.*)$ http://www.kgstiles.com/healthsolutions$1 [R=301]
RewriteRule ^(.*)\.html$ $1/ [R=301]
RewriteRule ^(.*)\.htm$ $1/ [R=301]
</IfModule>
¿क्या से क्या लिखना है? कृपया कुछ उदाहरण कृपया। आपके नियम सेट से अनुमान लगाना असंभव है। –
मैं अपने शेष नियमों से एक विशिष्ट फ़ाइल को बाहर करना चाहता हूं। मैं उपरोक्त संपादन में अपनी htaccess फ़ाइल पोस्ट करूंगा। – Christian