Remove the other .htaccess
from the sub-directory and try putting this in the .htaccess
in your root directory:
<Directory /scripts>
Order allow,deny
<Files hello.php>
Deny from all
</Files>
</Directory>
Related Posts:
- Rewrite /?rest_route=/ link to /wp-json/ without changing default permalink structure in apache
- index.php not loading in main folder of wordpress
- Redirect from different port to subdomain – htaccess
- WordPress 404 on Subdomain
- Only expose routes with prefix /wp-json on WordPress using Apache
- What’s the opposite of required valid user in .htaccess authentication
- How can i redirect one url to another url using .htaccess or add_rewrite_rule
- Override htacces rule only for specific directory
- Restrict uploaded files into a custom folder to logged in users by htaccess: looking for Nginx – not only Apache – solution
- How do I test to ensure that my wp-config file is protected?
- .htaccess Security Header Rules
- mod_rewrite loop, redirecting http to https on certain section of wordpress blog
- Directing subdomain to main domain and keeping the subdomain format with .htaccess
- WordPress – Promoting A Dev Build In A Subdirectory To Production / Root Directory
- Redirect old domain with query paramaters
- Does WP suppresses .htaccess if permalinks are disabled?
- fix 302 redirection error on https
- Access sub-domain when root public_html is protected with .htaccess password
- Accepting special characters in querystring
- WordPress permalinks confusion
- Configure .htaccess to have a WordPress single site installation with all subdomains pointing to the same pages?
- Unable leverage Browser Caching on AWS Bitnami stack (Apache) through W3TC and Cloudfront CDN
- How to move wordpress website from hosting account to localhost
- How to block wordpress admin by htaccess
- I can access subdirectory, but not files within it
- WordPress redirection
- How To Add CSP frame ancestors in WordPress Website? [closed]
- Subfolder install not working
- Browser Caching .htaccess
- Getting a 500 Internal Server Error on Laravel 5+ Ubuntu 14.04
- .htaccess: Invalid command ‘RewriteEngine’, perhaps misspelled or defined by a module not included in the server configuration
- Does this .htaccess security setting really work?
- htaccess problem after saving Settings
- Multisite htaccess on localhost with WP as an SVN external?
- File and directory permissions
- htaccess disable WordPress rewrite rules for folder and its contents
- htaccess https redirect from www to non-www
- Name-based virtual host configuration in Apache seems to cause a “500 Internal Server Error”
- WordPress Multisite – Multiple subfolders for blogs
- Isolating WordPress to a subfolder
- Error 101 after upgrading WordPress
- Why does the header set X-Robots-Tag apply to all pages?
- .htaccess Rewrite URL WordPress
- What is the role of .htaccess file in WordPress?
- Remove File Extension for Page Outside of WordPress
- different child theme for subdomain
- How do I edit the htaccess file to optimize my website?
- Block only external access to wp-cron.php on OpenLiteSpeed
- Site searches by Python for non-existent assets
- Allow logged in users who doesn’t belong to whitelisted ips
- WordPress On subfolder
- How To Allow Only Specific User Agent To Access a URL?
- How to ignore folder in site root while accessing a URL
- How can I enable keep alive (Not accessing to Apache)
- Site loads very slowly (4-5 minute load time)
- HTTP sitewide, except for: wp-admin, and 2 custom directories
- How do I host WordPress on a hidden domain through a reverse proxy?
- WordPress installed in root, need second in subdirectory with different domain
- htaccess has broken my site
- Rules in .htaccess only if the requested URL is /wp-admin
- What to write in the htaccess in order to detect browser language and point accordingly?
- .htaccess RewriteCond excluding directories does not work when there is an .htaccess or php.ini in subdirectory
- Separate 404 page for WordPress in subfolder
- Weird behavior of Dashboard, must be core files
- 404 error Additionally 403 Forbidden error on a URL
- Conflict with Force SSL and Rewrite Rules
- Remove trailing slash after .html extension
- I have a page using a pretty url and a mod_rewrite rule matching it. I expected it to give an error but it’s working. Why?
- How do I setup htaccess for 301 redirects, post Joomla to WordPress migration? [closed]
- Hide a subdirectory on my website hosting
- Can’t access WP site over WiFi network
- How do I do a redirect to WordPress permalink with post id via htaccess?
- Creating a copy of a website in a subdirectory, wp-admin redirect problem
- How to rewrite 404 to home page using htaccess?
- I am new in word pres my font awesome is not allow
- htaccess redirect throws an error: PHP Catchable fatal error: Object of class WP_Error could not be converted to string
- VServer/Rootserver/Shared Hosting: Multiple WordPress installations each having their unique domain?
- Basic Auth .htaccess on wp-login, but allow logout from woocommerce
- Why my WordPress Site Asking for HTTP Authentication?
- I need to make one folder private
- htaccess redirects invalid request to home page not 404
- Force HTTPS for mapped domain pointing to wordpress domain
- WordPress How to rewrite URL for custom pages
- How to properly give WordPress its own directory
- WordPress permalinks is wrong. It wants me to change my htaccess file. But then site crashes
- Question with .htaccess and wp-login.php prevention
- WordPress RSS feed to external XML
- Does htaccess password keep search engines out?
- What to do after a wrong RewriteRule?
- htaccess old php pages to new wordpress ones
- different CNAME to corresponding subfolders
- block seacrh engines for all pages EXCEPT homepage
- Allowing access to certain WordPress created pages or posts with htaccess / htpasswd
- How can I set up a completely separate (not multisite) WordPress installation as a subdirectory of an existing WordPress blog?
- Problem with All in one WP Migration – only works the home page
- htaccess – Server Subdirectory With Different Name Than URL Subdirectory
- How can I stop WordPress from catching URL’s for static pages that I save on my server
- WordPress Media Library rendering blank image tiles
- Redirect loops in Bing holding my sites back
- WP-Include rewrite directory