No, it will not work.
You pretty much will disable php to work on your site admin.
On wp-admin there are files being executed when entering the admin side of the site.
Related Posts:
- Improve wordpress security by hiding non public resources
- Does this .htaccess security setting really work?
- File and directory permissions
- Using “wordpress_logged_in” to restrict direct access to uploads folder in 2021
- WordPress URL/Folder ReWrite using Htaccess
- Which WordPress scripts need to be executable for a fresh installation?
- Blocking access to wp-login via htaccess not working
- Attach to wp-login.php and xmlrpc.php
- XMLRPC filtering through htaccess not working
- Restricting user login by IP address
- WordPress: Adding Security
- How do I test to ensure that my wp-config file is protected?
- WordPress not seeing .htaccess rules
- Rules in .htaccess only if the requested URL is /wp-admin
- Disable directory browsing of uploads folder
- Strange behaviour of is_user_logged_in() and get_current_user_id()
- Should I prevent access to .htaccess and wp-config.php files?
- Blocking wp-login in HTACCESS has also blocked password protected pages
- Basic Auth .htaccess on wp-login, but allow logout from woocommerce
- Using htaccess to prevent spam through wp-comments-post.php
- How can I create a private site that is inaccessible from the outside?
- Restrict Content for only Contributors via .htaccess
- Allowing access to certain WordPress created pages or posts with htaccess / htpasswd
- Why is this line of code Wrong in every WordPress .Htaccess security article?
- WordPress site hacked. Has .htaccess been hacked?
- .htaccess and 500 error, extra character added
- Place static HTML files in path below WordPress page
- htaccess rewrite for author query string when WP is in subfolder
- Why “Settings->Permalinks” creates .htaccess file on nginx server?
- .htaccess for wordpress inside another wordpress install
- Rewrite /?rest_route=/ link to /wp-json/ without changing default permalink structure in apache
- Globally force SSL on all pages
- Correct htaccess to display page while also passing in GET parameters
- Block access to wp-admin
- How have I misconfigured basic auth for my wordpress site?
- WordPress trims off the forward slash when import
- WordPress best solution shared theme for consumers and businesses (two url’s one instaltion)
- Redirect main domain to subdirectory
- Remove special characters in a URL
- Removing code added to htaccess with insert_with_markers
- WordPress 404 on Subdomain
- Can’t Access Subdirectory
- HTTP Error 406 always on site?
- Point all URLs to homepage but maintain URL
- htaccess working on local server but not on live server
- External content won’t load in iframe in Safari
- How to write .htaccess so that https is on for subpages only but not the home page
- 404 redirect wp-login and wp-admin after changing login url [closed]
- Custom rewrite rule, url returning 404
- mod_rewrite doesn’t work as I want even with JSON API Plugin disabled
- 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
- Creating a copy of a website in a subdirectory, wp-admin redirect problem
- How to rewrite 404 to home page using htaccess?
- Troll the hackers by redirecting them
- 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
- “Oops.” error on an html file directly uploaded to a subdirectory of my WordPress site
- WordPress permalinks confusion
- VServer/Rootserver/Shared Hosting: Multiple WordPress installations each having their unique domain?
- WP Codex answer incomplete? Put WP in subdirectory. .htaccess change required
- All navigation links on website redirect to same page
- WordPress is removing trailing slash
- Sub domain URL slash / missing after domain and before Post & page slug
- Problem with WordPress permalinks
- Htaccess file reset automatically how to fix this issue
- Clone WordPress for testing on localhost (with Fiddler)
- Force a 403 response to xml file in WordPress
- Redirect files in uploads directory if WordPress user not logged in
- Update htaccess in several WP sites at once
- I need to make one folder private
- Pretty Url not working on the server
- How to use slug with subdomain?
- Force HTTPS for mapped domain pointing to wordpress domain
- How can I restrict access, by IP, to the `wp-admin` folder/Dashboard?
- Reversing domain ‘sharding’ with htaccess
- After changing permalink, getting 404 for one particular category
- Htaccess remove dates from root site but not from subdomain
- .htaccess home configuration
- Cannot Override WordPress 404 for a Sub-Directory
- I can access subdirectory, but not files within it
- htaccess mod_rewrite not working
- adding a rewrite rule in wordpress functions file
- Redirect not working
- Giving WordPress it’s own directory and using .htaccess Directory Index
- Restrict download files from not generated Urls
- How to change wordpress news root url
- Problem with All in one WP Migration – only works the home page
- .htaccess for Subdomain and Subfolder w/SSL
- WordPress sections in htaccess kills FrontPage permissions
- How can I stop WordPress from catching URL’s for static pages that I save on my server
- Why my wp site always redirecting to the old website path..?
- Hiding wp-config.php via .htaccess on an install installed in another directory?
- Enable webp support Nginx+Apache reverse proxy with moss.sh [closed]
- .htaccess seems to be required but I can not find it
- cant access website thru www only works on direct xyz.com
- Htaccess to redirect whole website to coming soon html page
- When accessing a wordpress blog, I want to force http when accessing wordpress via xmlrpc otherwise force https