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

Unable to get /%postname%/ permalinks working, 404 on all links

This is going to sound crazy, but the following worked… I put the content in the following directory: /var/www/myexamplesite.com/public_html (and created log/ as well) Along with the following entry in httpd.conf <VirtualHost *:80> ServerAlias www.myexamplesite.com myexamplesite.com DocumentRoot /var/www/myexamplesite.com/public_html ServerName www.myexamplesite.com # Log file locations LogLevel warn ErrorLog /var/www/myexamplesite.com/log/error.log CustomLog /var/www/myexamplesite.com/log/access.log combined <Directory /var/www/myexamplesite.com/public_html> <IfModule mod_rewrite.c> … Read more

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