add_rewrite_rule not working for me
Have you tried adding the third parameter to that call? add_rewrite_tag( ‘%make%’, ‘([^/]+)’, ‘make=” );
Have you tried adding the third parameter to that call? add_rewrite_tag( ‘%make%’, ‘([^/]+)’, ‘make=” );
GoDaddy is unique among hosts that I’ve seen in that the changes you make to .htaccess files don’t take place immediately. They use some caching system for them in some manner. Turn on the permalinks and wait a day. It’s worked for me in the past when I used to be hosted there.
I solved the problem myself. In the default apache configuration, under /etc/apache2/sites-enabled, where mine is called 15-default.conf This was declared under the document root: <Directory “/var/www”> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny Allow from all </Directory> I had to change AllowOverride None to AllowOverride All. Thus you’ll get the following: <Directory “/var/www”> Options … Read more
you need to using jquery function functionality <script> var current_main = window.location.pathname; var current= document.URL; //var lastElement = current.substr(current.lastIndexOf(“https://wordpress.stackexchange.com/”) + 1); var main_url = currentq+”?”+thechosenone+”=”+thechosenone; var main = history.pushState(current,””, main_url ); </script> by using this you can able to append the url’s with specified get methods. I hope this will help you
From comment: There is not enough information to answer your question. All your code is javascript, not PHP. Additionally, there is no function named “setCookie” or “getCookie” in javascript, and you don’t state what libraries you are using. The answer is most likely that your setCookie function is using the current page path (cookies have … Read more
Yes it is possible. For first it should be created new rewrite_rules compatible with WPML. This version add taxonomy slug to URL. (post_type/taxonomy/term) /** * Custom post type specific rewrite rules * @return wp_rewrite Rewrite rules handled by WordPress */ function cpt_rewrite_rules($wp_rewrite) { $rules = cpt_generate_archives(‘your_post_type_name’, $wp_rewrite); $wp_rewrite->rules = $rules + $wp_rewrite->rules; return $wp_rewrite; } … Read more
The Rewrite_API will let you modify the slug and URI at many levels. You might need to come up with a custom page template for Product 2 that assigns the ‘/my-super-products’ slug, but this should work for you. http://codex.wordpress.org/Rewrite_API
These links are generated by alx_social_links() function. So in your theme’s functions.php file, search for alx_social_links() function and this link specifically. echo ‘<li><a rel=”nofollow” class=”social-tooltip” ‘.$title.’ ‘.$link.’ ‘.$target.’><i ‘.$icon.’ ‘.$color.’></i></a></li>’; and remove rel=”nofollow” from it. So this will be the new link. echo ‘<li><a class=”social-tooltip” ‘.$title.’ ‘.$link.’ ‘.$target.’><i ‘.$icon.’ ‘.$color.’></i></a></li>’; It will remove nofollow tag … Read more
Your Nginx website conf should look like that: location /wordpress { try_files $uri $uri/ /wordpress/index.php?$args; } This will allow all paths who doesn’t match a real file to be redirected to the index.php with the query sting passed directly to WordPress. WordPress will handle it from there. More in depth information can be found here: … Read more
It isn’t too clear what’s your actual reason for doing this, so it’s hard to guess the perfect solution. On top of my head it’s likely you would probably do well to create or modify category template. This will give you control over page source for that precise category. If you want to do this … Read more