Page not found if mod_cache_disk is active
I solved this issue by replacing RewriteRule . /index.php [L] with RewriteRule ^(.*)$ /index.php/$1 [L] in .htaccess file.
I solved this issue by replacing RewriteRule . /index.php [L] with RewriteRule ^(.*)$ /index.php/$1 [L] in .htaccess file.
OK after doing some more research I found out that I had to change the configs for the NGINX files as well. I simply had to add the following parameters before the last closing bracket location /nameofnewsite { try_files $uri $uri/ /nameofnewsite/index.php?$args; } location ~ \.php$ { fastcgi_split_path_info ^(/nameofnewsite)(/.*)$; }
You can assign the 404.php as a template to your custom 404 page created with the page builder. You would need to edit the 404.php to something like this: <?php /** * Template Name: 404 */ get_header(); $query = new WP_Query([ ‘posts_per_page’ => 1, ‘post_type’ => ‘page’, ‘meta_key’ => ‘_wp_page_template’, ‘meta_value’ => basename(__FILE__) ]); if … Read more
You don’t need to submit the form to the PHP script – the script simply needs to be included or required by PHP – this makes the code within it available to your entire application. As Tom pointed out in his comments, there are security risks to this approach – but it is also not … Read more
So, I still have no idea what was going on. I had to disable the custom post type and drop all references to the ‘product-profiles’ entries that I had created from the wp_posts table manually, including autodrafts and revisions. After that I was able to re-enable the ‘product-profile’ post type and it ended up working … Read more
Thanks to @jacob peattie for helping me to figure this out. The issue is that I had WP_CONTENT_URL set incorrectly. Removing it fixed the issue. I could have added /wp-content to the url and it would’ve solved the issue as well. To explain why this caused in issue, I turned to the docs. This page … Read more
It has nothing to do with WordPress. Your server is configured to refuse access from other domains. All you need to enable CORS Origin. This will allow request from other domains. But it will decrease security. You might want to change the * (allow all) to your sub domain. Just put it in your .htaccess … Read more
Sorry guys, this is becoming a habit, but I found a solution, as follows: set rewrite to false in taxonomy registration: register_taxonomy(‘property_type’,array(‘sbproperty’), array( ‘hierarchical’ => true, ‘labels’ => $labels, ‘show_ui’ => true, ‘query_var’ => true, ‘rewrite’ => false )); And create my own rule add_filter(‘rewrite_rules_array’,’wp_insertMyRewriteRules’); add_filter(‘init’,’flushRules’); function flushRules(){ global $wp_rewrite; $wp_rewrite->flush_rules(); } function wp_insertMyRewriteRules($rules) { … Read more
If you can’t modify .htaccess then chances are WordPress can’t either. Save your permalinks again and check if it tells you it couldn’t save your htaccess file. That’s your problem if so. Bigger question: why are you using a host that won’t let you modify .htaccess? That’s like renting an apartment from a landlord that … Read more
I don’t know about Bing’s spider but you can create your own widget and instead of using the select tag’s onchange event you can use JQuery to bind the change event to do the same: $(“select”).change(function () { window.location.replace(this.val()); });