Update your .htaccess in WordPress root folder with below code
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /foo
RewriteRule ^/foo/app\.php$ - [L]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Related Posts:
- issue with wordpress [wp-admin] redirects, when using kubernetes ingress hosting two wordpress websites using path
- Why wp redirects me to wp-login.php when I visit a rewritten wp-admin URL?
- How to redirect/rewrite all /wp-login requests
- Change Login URL Without Plugin
- WordPress in sub directory wp-admin problem
- How to change “wp-admin” to something else without search-replacing the core?
- Custom rewrite rule for backend/admin?
- Prevent /wp-admin/ from redirecting to homepage?
- How do I host WordPress on a hidden domain through a reverse proxy?
- Change pagination url format
- Weird urls after moving site from local env to a server
- 403 Error when using save buttons
- Can’t get pretty permalinks to work without index.php
- How can you change the admin dashboard URL without symlinking?
- WP-Include rewrite directory
- openlitespeed rewrite rules conversion from apache
- prevent wordpress from changing/rewriting url ip with the siteurl settings
- Organizing Code in your WordPress Theme's functions.php File?
- How to check if a user is in a specific role?
- Create WP tutorial for users with admin pointer using next button for navigation
- Disable image attachment links
- Remove “Time to upgrade” message from dashboard
- Pre-fill fields with content from outside when creating a new post
- Why are admin scripts not printed
- White screen of death only in wp-admin
- How to remove “admin.php?page=” from wp-admin using .htaccess?
- Custom taxonomy on permalink
- Blog installed in subdirectory but need to create pages in root. How to use permalinks?
- jquery UI in wordpress admin
- Restrict access in wp-admin area?
- Registering jQuery kills admin functions
- Display $pagenow error notice on all admin pages
- Custom Permalink for Taxonimie and Custom Post Type
- Plugin action rewrite rule – non_wp_rules
- Map alt domain to specific section of website w/o MU
- How can I restrict a user to a specific item in the WordPress Admin? [closed]
- disable a wp javascript on live website, but not on wp-admin page
- wp_nonce_url to users.php for deleting user not working
- Why doesn’t flush_rewrite_rules run on plugin activation?
- Moving wp-admin to a different to a subdomain
- Permalink Structure CPT With Custom Taxonomy Fails
- Limit access to wp_admin
- MySQL CPU Usage Surge up When Multiple Post Editor Pages are open
- 404 error- issues with pages after adding custom rules for posts
- Static variable and add_rewrite_rule?
- add_rewrite_rule not working for me
- Using WP Rewrite, but just not “getting it”
- WP is ignoring .htaccess rewritten URL
- Post Editor not working on WordPress 3.5.1
- Rewrite Rules to custom template
- Rewrite CPT permalinks and include WPML language
- how to customize wp-admin page using child theme
- How to write Rewrite rule for same path using Rewrite API?
- new subdomain to apply as main domain
- I can´t access my admin panel. I tried all possible solutions
- Register page in admin area
- “WordPress installations is currently out of date” problem with difficult situation [closed]
- Custom plugin admin page issues
- Custom Permalinks for Custom Post Types
- Customising Word press Admin – Add Post Page functionality to another similar page
- How to add ‘Insert HTML Table’ button to TinyMCE in admin?
- Route subpage to Custom Post Type
- Adding URL prefix for foreign language support
- How can I add rewrite rules to a class-based plugin?
- How can I remove commas when adding tags?
- Displaying Title in Title Tag on Edit page?
- How to add custom CSS and JavaScript file for wp- admin dashboard (backend)
- Pagination for custom post types – url rewriting
- How can I remove unwanted word on my WP site?
- WordPress Rewrite Rule
- Toggle between block ‘edit content’ and ‘select’ not properly working in WordPress Admin
- WordPress Admin extremely slow when other admin logged in
- Can’t acces login on new site
- WordPress Admin Panel Left Sidebar No showing on Post create page
- After changing Site http to https, can’t access wp login page with a digitalocean hosting
- Can’t access WP-Admin via HTTPS
- stop customize.php redirect to login page if admin is not logged in
- Random authentication failures on a load balanced WP setup
- Can I get programmatic access to wp-admin?
- remove_query_arg on options.php
- wp.svgPainter cannot init error, causing issues with admin panel
- mysql_escape_string PROBLEM
- Organising and display thousands of photos in media library
- Custom comment action
- get_current_screen – ‘Trying to get property of non-object’ error
- Block tools menu in wp-admin?
- Change Admin URL
- URL Rewrite for CPT single posts
- is_admin() triggers error
- Getting 404 when using rewrite rule for posts
- not able to add thumbnail custom field in dropdown
- wordpress admin is broken [closed]
- Rewrite URL for a specific taxonomy [duplicate]
- add_rewrite_rule not working with custom variables
- Can’t access backend
- login_enqueue_scripts changes are not reflecting
- How to write ReWrite Rule to cut URL?
- How to add random prefix (based on related page slug) to custom post type?
- Display Custom Text if date_picker date is expired
- admin showing Array() after adding exit() code