adding a rewrite rule in wordpress functions file

Did you add the query vars via the query_vars-hook in addition to the defintion of the rewrite rule in the init-hook? add_filter( ‘query_vars’, ‘my_add_query_var_function’ ); function my_add_query_var_function( $vars ) { $vars[] = ‘a’; $vars[] = ‘cat’; $vars[] = ‘where’; return $vars; }

Need to edit htaccess while moving on WordPress

This question seems simple, but if you use some of the basic features of WordPress (such as categories), then the solution can become very complex and difficult. My suggestion below assumes that you use a very simple setup. First, I will assume that when you convert your content to WordPress that what you call [pagename] … Read more

Fully mask *all* traces of WordPress installation subdirectory?

For the sake of anyone interested in the answer to this question, I am posting here the following answer that I received in the WordPress.org support forums. leejosepho graciously provided the following answer: Yes, that is possible. Save ‘http://dem0site.net‘ in both boxes at Dashboard > Settings > General, then cPanel-assign and -point your domain to … Read more

Allow arbitrary text after page URL

This approach is not advisable as http://example.com/page/whatever-information/ is how WordPress deals with child pages and .htaccess Rewrites is part of how WordPress identifies what page is being requested and what queries to run. You should probably pass the whatever-information as something called a POST variable, then have code that runs on page and parses these … Read more

htaccess mod_rewrite not working

With some help (also asked on SO, as this wasn’t a strict WP question), and some testing, the following ended up working for me (added a slash just before the $ sign): RewriteRule ^galleries/(.*)/$ /portfolio/$1 [R=301,NC,L] As the galleries are actual directories, not files, they have a slash at the end: http://subdomain.example.com/galleries/headshots/ Here —^

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