mod_rewriting conflict with WP permalinks in htaccess [closed]

Try this: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /blog/ RewriteCond %{REQUEST_URI} ^/blog/.*$ RewriteRule /blog/?c=([^\&]*) $1 [L] # BEGIN WordPress RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . index.php [L] # END WordPress </IfModule> Since RewriteBase is defined, you shouldn’t have to specify /blog/ again in the redirection part. RewriteEngine On and RewriteBase … Read more

permalink results to “page not found”

I think there is enough information to make an answer. Really, only barely a WordPress questions but here you go. First, be aware that the query-string format– ?p=, ?s=, etc– should always work. This is for an Apache(2) server. mod_rewrite must be enabled AllowOverride All or at least AllowOverride File must be set The .htaccess … Read more

Why does WordPress redirect when I separate wp-core and wp-content?

wp-login.php is an actual file that is directly loaded up instead of using a rewrite rule. If you look at file listing in /var/www/vhosts/www.example.com/, you’ll probably will not see the wp-login.php file. But if you check /var/www/vhosts/www.example.com/wp-core/, you’ll probably find it if I understand your configuration correctly. This means your login URL is actually: http://www.example.com/wp-core/wp-login.php … Read more

WordPress .htaccess rewrite for custom template

Don’t use an .htaccess rule, use WordPress internal rewrite system. First, add a query var for your ID: function wpd_query_vars( $query_vars ){ $query_vars[] = ‘my_id’; return $query_vars; } add_filter(‘query_vars’, ‘wpd_query_vars’); Then add an internal rule to catch incoming requests, load your database page, and set the ID query var: function wpd_database_rewrites(){ add_rewrite_rule( ‘database/([0-9]+)/?([a-zA-Z0-9_-]*)/?([a-zA-Z0-9_-]*).html$’, ‘index.php?pagename=database&my_id=$matches[1]’, ‘top’ … Read more

URL rewriting with custom user meta “/%shop_name%/gallery/%gallery%”

I used the following functions to solve this problem. //This adds a custom query variable to the permalink function add_custom_query_var( $vars ){ $vars[] = “shop_name”; return $vars; } add_filter( ‘query_vars’, ‘add_custom_query_var’ ); function add_rewrite_rules($aRules) { $aNewRules = array(‘shop/([^/]+)/?$’ => ‘index.php?pagename=shop&shop_name=$matches[1]’); $aNewRules2 = array(‘shop/([^/]+)/gallery/?$’ => ‘index.php?post_type=gallery’); $aRules = $aNewRules + $aNewRules2 + $aRules; return $aRules; } … Read more

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