permalinks

Change url with get parameters to url with path. Wordpress site

ⅰ亾dé卋堺 提交于 2021-02-08 11:25:24
问题 I have a wordpress site. It has a product page that shows some modifications of a product depending on GET parameter given. https://www.officeshop.co.il/product/product-name-1/?build=product-572 https://www.officeshop.co.il/product/product-name-1/?build=product-573 I want to make the url look like this: https://www.officeshop.co.il/product/product-name-1/build/product-572 or https://www.officeshop.co.il/product/product-name-1/product-572 I have tried managing redirects with .htaccess file but

How do I create permalinks that are database driven?

我的未来我决定 提交于 2021-02-08 06:14:36
问题 I'm looking for a way to translate http://www.mysite.com/articles.php?id=1 into http://www.mysite.com/articles/name_of_article_from_field_in_database_with_id_1 I'm ok with doing some sort of RewriteRule with Mod Rewrite, but I'm not sure how to do it exactly. My pages are coded in PHP pulling from a MySQL database. Hopefully someone can tell me how to do this! I know there are others looking for a similar answer. Thanks again! NCoder 回答1: You're going to need a rewrite rule in your web server

How to create permalink with monthname instead of using monthnum?

眉间皱痕 提交于 2021-02-06 09:10:50
问题 I want to redirect my blog articles like this, http://www.example.com/blog/2014/september/03/post-name But in wordpress it only allows me to use month number, http://www.example.com/blog/2014/09/03/post-name. I'm searching for this but not found anything useful. Some unanswered posts and they are not even saying, whether It is possible or not. Even in the wordpress documents there is no reference for this. I found the following code but it changes the url but not linking the post page. <?php

After changing domain name of wordpress site only default permalinks working wordpress others returns 404 error

流过昼夜 提交于 2021-01-29 12:32:19
问题 I will be really thankfull for any help, because After reading and trying a lot of tutorials, i have not found any solution. After i change domain name from www.examlpe.fr to www.newExample.fr, i have only the home page works successfully but others links returns 404 not found error. I try to manage this with Permalinks, i found only the default permalink works. in wp_config i set: define( 'WP_HOME', 'http://newExample.fr' ); define( 'WP_SITEURL', 'http://newExample.fr' ); Also in functions

How to change permalinks for pages (Not blog posts)?

随声附和 提交于 2021-01-29 10:33:43
问题 I want to achieve something rather simple actually but can't find a solution. Instead of applying the permalink for posts, I want them applied to pages or both for that matter. Ideally, I want to have the category in the permalink. For example: http://www.example.com/earth/somepage http://www.example.com/mars/anotherpage *Where [earth & mars] are the categories. [somepage & anotherpage] are the titles of the pages. For this example I registered the category and tag taxonomy function myplugin

Removing /product-category/ and /shop/ from URL in WooCommerce

醉酒当歌 提交于 2020-12-15 03:43:20
问题 I'm building an ecommerce store with WooCommerce, and I would like to change how my URLs are created. At the moment the structure is domain.com/product-category/category-name domain.com/shop/category-name/product-name For SEO purposes would like to change it to domain.com/category-name domain.com/category-name/product-name but when I delete the product category base in Wordpress permalink settings, it just reappears. Then I found this page stating that I shouldn't change it at all. Is that

Removing /product-category/ and /shop/ from URL in WooCommerce

邮差的信 提交于 2020-12-15 03:43:19
问题 I'm building an ecommerce store with WooCommerce, and I would like to change how my URLs are created. At the moment the structure is domain.com/product-category/category-name domain.com/shop/category-name/product-name For SEO purposes would like to change it to domain.com/category-name domain.com/category-name/product-name but when I delete the product category base in Wordpress permalink settings, it just reappears. Then I found this page stating that I shouldn't change it at all. Is that

Disable item link for specific products in WooCommerce cart checkout and orders

橙三吉。 提交于 2020-08-26 06:59:38
问题 I would like to disable the link from cart items and order items names for specific variable products. I found Disable item name link for specific product in Woocommerce cart checkout and orders answer code that does disable links on single product, but I would like to know how to change it for a variables one? 回答1: The following will work with all product types (simple, variable, variations…), disabling item links from an array of defined product Ids : // Cart item link add_filter(

Disable item link for specific products in WooCommerce cart checkout and orders

不想你离开。 提交于 2020-08-26 06:59:25
问题 I would like to disable the link from cart items and order items names for specific variable products. I found Disable item name link for specific product in Woocommerce cart checkout and orders answer code that does disable links on single product, but I would like to know how to change it for a variables one? 回答1: The following will work with all product types (simple, variable, variations…), disabling item links from an array of defined product Ids : // Cart item link add_filter(

links redirect to dashboard xampp

社会主义新天地 提交于 2020-08-05 10:07:13
问题 I've moved WordPress from hosts to Xampp local hosts. I corrected the links inside the database. Although the home page is loaded. But on every link, I'm redirected to the http: // localhost / dashboard page. I use WordPress 4.9.6, Xampp 3.2.2 and Windows 8.1 64-bit my .htaccess file BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] <