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
- htaccess – Redirect to subfolder without changing browser URL
- Organizing Code in your WordPress Theme's functions.php File?
- How to check if a user is in a specific role?
- Can I rename the wp-admin folder?
- How do I Enqueue styles/scripts on Certain /wp-admin Pages?
- How to create custom URL routes?
- How do you create a “virtual” page in WordPress
- Need help with add_rewrite_rule
- Changing Admin Menu Labels
- Adding custom columns to custom post types
- Adding Fields to the Category, Tag and Custom Taxonomy Edit Screen in the WordPress Admin?
- adding custom stylesheet to wp-admin
- Can’t change language (only “English (United States)”)
- Is there ANY way to remove comments function and section totally?
- How to use “menu_order” field for posts?
- remove “index.php” from permalinks
- “Too many redirects” ONLY when trying to access wp-admin page
- Custom pages with plugin
- How to restrict dashboard access to Admins only?
- Admin Page Redirect
- Disable dragging of meta boxes?
- Toggle admin metabox based upon chosen page template
- Unable to login and wp-login.php redirects to wp-admin%2F&reauth=1?
- Change the “page” slug in pagination
- When moving a WP site, why does wp-admin redirect to old site?
- How to disable the “Post Lock/Edit Lock”?
- adding the category to the admin column for a custom post type?
- How can we make managing lots of pages in WordPress Admin better?
- Understanding add_rewrite_rule
- Change page title in admin area
- do_shortcode() within Admin Page
- How can I control the position in the admin menu of items added by plugins?
- Changing the ‘wp-admin’ URL to whatever I want
- web.config conflict on IIS
- Unit testing in the WordPress backend (is_admin() is true)
- Admin ajax request return 0 with die()
- How to prevent access to wp-admin for certain user roles?
- How to remove screen options and help links in the admin area?
- How to remove the core embed blocks in WordPress 5.6?
- How to increase the file size limit for media uploads?
- Create WP tutorial for users with admin pointer using next button for navigation
- I’m getting a 404 message when I try to access wpadmin
- Taxonomy dropdown metabox in the back-end
- wordpress wp-admin css not loading
- Sort admin menu items
- Custom rewrite rules for archive page and single post
- How to order by post meta name in wp admin?
- How set defaults on wpLink()
- WordPress Rewrite Rules for Custom Post Type and Taxonomy
- Custom post type permalink endpoint
- Remove dashboard, use Pages tab as default
- Rewrite rules not working in WordPress
- Show all post tags on post edit screen/sidebox
- How to hook in and modify the new revisions UI (3.6+)?
- Dynamic Endpoints
- How to display a static HTML page while setting up a WordPress site?
- Limit widget to certain sidebar?
- How can I uninstall a language?
- Check if user is admin by user ID
- My wordpress site gets redirected automatically to the old site any known solution for this?
- Best way to present options for home page in admin?
- Use a different domain for SSL
- Remove specific items from Quick Edit menu of a Custom Post Type?
- How to filter by post-format in admin?
- Unable to login to my wordpress site. reauth=1 redirection loop
- How to add custom rewrite rule to .htaccess?
- Multiple post types – share same ReWrite slug?
- Add “external” link to admin menu in the backend
- How do I remove a rewrite rule?
- How to Layer 7 Load Balance WordPress Backend and Frontend?
- Problem with add_rewrite_rule and pagination (paged and page query_vars)
- Use subdomain for certain urls
- Disable image attachment links
- How can I improve the line break handling in the WYSIWYG editor?
- wp_list_tables bulk actions
- Custom column for changing post status via ajax
- After changing http -> https -> http, I cannot access admin dashboard
- Can I get the role of the currentUser in modern WordPress React?
- Is there a way to get the WP Admin Header to inject as the first element in the body instead of the last?
- Can’t understand how to use add_rewrite_rule [closed]
- How to prevent a user from updating other users in WordPress?
- white screen when trying to access wp-admin. Can
- Why would “Thank you for creating with WordPress” be displaying part way up the wp-admin pages?