Home Why multiple .htaccess files are not working on one domain?
Reply: 0

Why multiple .htaccess files are not working on one domain?

user1564 Published in July 22, 2018, 6:05 pm

This question already has an answer here:

  • .htaccess & Wordpress: Exclude folder from RewriteRule 13 answers
  • Exclude a folder/directory from RewriteRule 3 answers

I install wordpress on my main domain http://www.pkbrand.com, .htaccess code of this wordpress website is this

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress

and I have a PHP website in Sub-Folder http://www.pkbrand.com/Pakistan, .htaccess code of this PHP website is

RewriteEngine On
RewriteRule ^([^/]*)/([^/]*)/([^/]*)\.html$ /lahore/product.php?cat=$1&title=$2&pk=$3 [L]
RewriteRule ^([^/]*)\.html$ /lahore/category.php?pakistan=$1 [L]

Problem: PHP website is not working that is in Sub-Folder, When I open any URL of PHP website. It display 404 error message.

Note: PHP website is working well on an other domain in main folder.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.320715 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO