Tag Info

New answers tagged

0

Yes, it is possible. You have two options. First, change the folder where your domain goes. If I get it correctly, now, your domain goes to the root folder. You have to change it, and make it goes to the blog folder. The second option, is move all files that are inside blog folder to the root folder. When you did any of these option, you won't be able ...


0

Option 1 This is the clean way using .htaccess. Put this at the top of your .htaccess: <IfModule mod_alias.c> RedirectMatch 301 /portal/wp-content/uploads/(.*) /wp-content/uploads/$1 </IfModule> Option 2 This is a bit brute-force and I therefore wouldn't recommend it, but I include it here for completeness. Just copy all files in ...


1

It can be done by writing a code on post_link filter. This filter allows you to change the final post link. Since you are showing categories in your permalink, so I am assuming that your permalink structure contains %category% in it. Below code will help you to get links the way you want. add_filter( 'post_link', 'wdm_change_category_permalink_structure', ...


0

I have used my jewelery post type bellows code, You can just replace your post type & taxonomy. Just copy & paste on your functions file. <?php //Register a Jewelry post type. function jewelry_post_register() { $labels = array( 'name' => _x( 'Jewelries', 'post type general name', 'twentytwelve' ), ...


1

Maybe you are not using the correct hooks nor the correct rewrite rule. You are rewriting to pagename, which is for pages. You should use name to get posts by slug. add_filter('query_vars', 'cyb_add_query_vars'); function cyb_add_query_vars( $vars) { $vars[] = "item"; return $vars; } add_action('init','cyb_add_rewrite_rules'); function ...


0

After asking here, I keep trying myself too so I am able to do it and working on my side. I added below codes in my .htaccess file and after that I am able to redirect all upper URLs without any 404 error. Redirect 301 /search/label http://www.example.com/category Redirect 301 /search http://www.example.com Redirect 301 /feed http://www.example.com For ...


1

Well you are changing URLs which WILL impact your SEO. The best way to minimize this is with what's known as a "301 redirect". The 301 part is a server response code to tell the visitor (Googlebot is the one you care about) that the resource formerly at domain.com/page is now permanently moved to domain.com/blog/page. If done properly you can modify your ...


0

Just faced the same situation and stumbled upon this question while googling. It seems like this isn't possible. Core itself just appends strings to the URL if pretty permalinks are enabled, see https://core.trac.wordpress.org/browser/tags/3.9.1/src/wp-includes/link-template.php#L571 For anyone interested in this: You can do something like this in your ...


1

No, there should be no issues running multiple multisite installs in a single VVV setup. I have at least 4 multisite installations running on my machine as I type this. Your issue is likely either because your multi-sites are identical, and share database tables and/or URLs, or, you've added a subdomain site and you now need to re-provision VVV to get the ...


0

Parsing of the requested URL happens in the file wp-includes/class-wp.php. The magic happens starting at line 148 in the parse_request function. For path info style permalinks, $_SERVER['PATH_INFO'] is used, for pretty permalinks, $_SERVER['REQUEST_URI'] is used.


0

Instead of using fixed php file you can use the custom wordpress templates create a custom template file and give it a name such as custom template name is step2.php and Step2 /* Template Name: Step2 */ The contents of the custom template file is similar to the content of the file on your step2.php Or you can use ajax to request but still could not ...


0

I will expand my question with more information for better understanding. At the /testting/ folder (the blog's directory). The basic .htaccess shows: RewriteBase /testting/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /testting/index.php [L] Once ...


0

Are you sure your rewrite rules are actually being saved? How are you calling this function to setup the rewrite rules? Action? What about flushing rewrite rules, are you flushing them anywhere in your project? Disable all of your plugins and test to make sure one isn't flushing rewrite rules on every page load. As you can see in this plugin i'm ...


0

If i understand right what you're looking for is get_query_var( $var ) which return the given var passed trough the rewrite process. http://codex.wordpress.org/Function_Reference/get_query_var Here a list of WordPress Query Vars http://codex.wordpress.org/WordPress_Query_Vars For debugging purpose you can get a list of all the query_vars using: global ...



Top 50 recent answers are included