“406 Not Acceptable” appearing in SEMrush index audit for WordPress site — how do I identify and fix the cause?
“406 Not Acceptable” appearing in SEMrush index audit for WordPress site — how do I identify and fix the cause?
“406 Not Acceptable” appearing in SEMrush index audit for WordPress site — how do I identify and fix the cause?
I solved it by executing the commands sudo dnf install mod_rewrite sudo sed -i ‘s/AllowOverride None/AllowOverride All/’ /etc/httpd/conf/httpd.conf sudo systemctl restart httpd
301 Redirect via rewrite_rules_array (not .HTACCESS)
The wp-admin url for each site does not work on WordPress multisite
Are there any negative impact if access to directories were accidently denied?
So, I found a solution that seems to work great and as expected: function custom_username_links_modify_links($content) { global $post; $landing_page_id = get_option(‘custom_username_links_landing_page’); $registration_page_id = get_option(‘custom_username_links_registration_page’); if ($post && $post->ID == $landing_page_id) { $url_path = parse_url($_SERVER[‘REQUEST_URI’], PHP_URL_PATH); $url_parts = explode(“https://wordpress.stackexchange.com/”, trim($url_path, “https://wordpress.stackexchange.com/”)); if (count($url_parts) > 1) { $element = $url_parts[1]; $custom_username = get_user_meta(get_current_user_id(), ‘custom_username’, true); if (!empty($custom_username) … Read more
URL rewriting problem
Figured out a solution! This intercepts the query at parse_request, checks if a page with a matching slug exists, and if so, changes the request to a page request. /** * Fix rewrite conflicts between “project_category” and “page” * * @param WP $query * @return WP */ function prefix_parse_request_fix_rewrite_conflicts_project_category(WP $query): WP { if (isset($query->query_vars[“project_category”])) { … Read more
Need help creating a WordPress site that has a landing page and sub pages for an area (for example, “London”). Website will have 100’s of areas
SOLVED: This is Apache2 on Debian: added the following to the ./sites-available/wp_container.conf virtual hosts file. Note that AllowOverride must be placed inside <Directory …> … Include conf-available/rewrite.conf <Directory /var/www/html/wp_container/> AllowOverride All </Directory> …