Strange behavior: random HTTP error 500 fixed by visiting Permalinks settings page (htaccess issue with language code)

Looks like it might be your WPML. See here: https://wpml.org/forums/topic/wpml-add-rewritebase-en-in-htaccess/ For posterity, the summary of this page is as follows: Problem: Some wrong settings caused an issue with “Use directory for default language”. A 500 error was showing. Solution: The client reports here that pressing the ‘Reset Settings’ button in WPML -> Languages probably solved … Read more

Adding a prefix to the blog, but only the blog

In creating your post types register_post_type) you need to add with_front as false: ‘with_front’ (bool) Whether the permastruct should be prepended with WP_Rewrite::$front. Default true. so your rewrite could be ‘rewrite’ => array ( ‘with_front’ => false), or if it’s already there with a new slug something like this: ‘rewrite’ => array(‘slug’ => ‘post_slug’, ‘with_front’ … Read more

How to change permalinks

Permalink settings are handled in wp-admin under Settings > Permalinks. You can select the “Post name” radio button and save the changes, and your permalinks will be updated. If this is a live indexed site, you may want to set up redirects for search engines and visitors – that’s the only part that would require … Read more

Broken wordpress site, non-working links and no access to wp-admin page

https://wordpress.stackexchange.com/ is the stackexchange website that deals with wordpress. It seems like your website is hosted by Automattic so you can get their help by communicating with their support staff. Go to https://wordpress.com/support/contact/ and click on “I need customer service for a paid site hosted at wordpress.com“ https://wordpress.com/support/com-vs-org/ WordPress is a free and open-source Content … Read more

Custom URL rewrites for templates

Since you want to add something to the end of every post/page rewrite rule, you probably can just add a rewrite endpoint. These are regexes of the form /[endpoint_name](/[optional_extra_stuff])? that are appended to the already generated rules for pages, posts, archives, … You define on which structures you want to add them by setting the … Read more

RSS feed link on archives page not working

I made a mess of this in comments, so will start from scratch. The feed links for archive pages are usually only outputted for browser detection by feed_links_extra(). From looking at its source there is number of different function to get link for the archive pages: get_category_feed_link( $cat_id ); get_tag_feed_link( $tag_id ); get_term_feed_link( $term_id, $taxonomy … Read more

Strange behavior with a redirect loop – involves WPML multi-language plugin

Your site is misconfigured, but from remote it’s not easy to say where exactly. For the redirects, it’s going this way: requesting http://internationalgateway.us/fr 301 redirect to http://internationalgateway.us/fr// requesting http://internationalgateway.us/fr// 301 redirect to http://internationalgateway.us/fr/ requesting http://internationalgateway.us/fr/ go to 2. This is the redirect loop your page creates unrolled. To debug this, you can make use of … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)