Site icon Hip-Hop Website Design and Development

subdirectory index.php is just not working

I’ve setup wordpress within the root listing and on the similar degree I’ve another directories e.g named “sq”.

Beneath sq there are subdirectories like first, second, … underneath every subdirectory there’s index.php file.

Drawback is when I’m accessing http://instance.com/sq/first it’s giving me 404 web page of root wordpress.

I attempted index.html as an alternative of index.php and that’s working. So index.php is just not woking and I want php not html.

I’ve tried all of the doable google options of updating .htaccess however nothing is working for me. e.g I’ve tried this

# Embody within the subsequent line all folders to exclude
RewriteCond %{REQUEST_URI}  !(sq|folder2|folder3) [NC]
RewriteCond %{REQUEST_URI} !^/(sq|mydir/.*)$
RewriteBase /sq/

my full .htaccess is as

# BEGIN WordPress
<IfModule mod_rewrite.c>
ErrorDocument 401 default
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]

# Embody within the subsequent line all folders to exclude
RewriteCond %{REQUEST_URI}  !(sq|folder2|folder3) [NC]
RewriteCond %{REQUEST_URI} !^/(sq|mydir/.*)$
RewriteBase /sq/

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]


#----- START DAP -----
RewriteCond %{REQUEST_FILENAME} -f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteCond %{REQUEST_FILENAME} (.*)/wp-content/uploads/(.*) 
RewriteCond %{REQUEST_FILENAME} !(.*)(.php|.css|.js|.jpg|.gif|.png|.txt|.ico|.jpeg)$ 
RewriteRule (.*) /dap/shopper/web site/dapclient.php?dapref=%{REQUEST_URI}&plug=wp&%{QUERY_STRING}  [L] 
#----- END DAP -----

</IfModule>

# END WordPress

Please assist guys.

Thanks.