Permalink Doesnt Work – URL Not Found

My head like wanna explode because of this problem. However I just solved the problem. the problem is here $content = base64_decode(‘IyBCRUdJTiBXb3JkUHJlc3MKPElmTW9kdWxlIG1vZF9yZXdyaXRlLmM+ClJld3JpdGVFbmdpbmUgT24KUmV3cml0ZUJhc2UgLwpSZXdyaXRlUnVsZSBeaW5kZXhcLnBocCQgLSBbTF0KUmV3cml0ZUNvbmQgJXtSRVFVRVNUX0ZJTEVOQU1FfSAhLWYKUmV3cml0ZUNvbmQgJXtSRVFVRVNUX0ZJTEVOQU1FfSAhLWQKUmV3cml0ZVJ1bGUgLiAvaW5kZXgucGhwIFtMXQo8L0lmTW9kdWxlPgoKIyBFTkQgV29yZFByZXNzCg==’); if you decode the String, you will get a text(string) which is exactly just like in .htaccess file. if you modify the .htaccess directly from the file, you will get the problem, so … Read more

Correct permalinks and 404-error

This is a common problem (that I just finished fixing). It seems to arise in a few different ways. Some people seem to be able to fix it by selecting the default permalink format and then switching back to their preferred one. In my case, the problem seemed to be that I didn’t have mod-rewrite … Read more

Process all virtual sub pages on parent page

add_filter(‘the_permalink’), is the wrong tool for the job, it gets you the full permalink for the current post or a specific post ID. It seems like the proper approach would be to use a rewrite rule: add_filter(‘query_vars’, function($vars){ $vars[] = ‘id’; return $vars; }); add_rewrite_rule(‘id\/([\w\-]+)\/?’, ‘index.php?id=$matches[1]’, ‘top’); CAVEAT: I haven’t tried this, and id might … Read more