Questions tagged [url-rewriting]
Refers to the process whereby an URL is manipulated to create what in WordPress is called a "pretty permalink"
2,056 questions
0 votes
0 answers
55 views
How to add custom rules using add_url_rewrite wordpress function for dynamic query variables
I'm sorry I wasn't clear. English is not my first language. I have asked a colleague to help rewrite the question and I hope this clarifies what I am trying to achieve; I have a page that describes my ...
0 votes
0 answers
52 views
Wordpress Custom Seo URL Rewrite
I'm trying to to change my website permalinks URL due Google indexing issue. From https://website.com/manga/back-to-spring/back-to-spring-chapter-43/ to https://website.com/manga/back-to-spring/...
0 votes
1 answer
65 views
Display content based on multiple URL parameters—pretty URL or query string
I am building some frontend forms so that users can manage some data held in custom post types. I would like to minimize the number of pages and templates I need to create to display the correct forms ...
0 votes
0 answers
45 views
Custom post type permalink structure incorporating category name
I am having problems getting a custom permalink structure to work. Short version I have a URL ending /custom-post-type/%category%/post-name/ but what I really want is /custom-post-type/category-name/...
-1 votes
1 answer
139 views
Simple page with GET variable as a pretty link
I've been trying to solve this for two days now, and I still don't understand what I'm doing wrong. So, the problem is very simple. I have a simple page with the URL mywebsitedomain.com/shop-the-look/....
0 votes
0 answers
50 views
htaccess: URL rewrite with backreferences in URL and parameter
I want to rewrite URLs (with parameters) from my old domain to URLs (without parameters) to my new domain. The old URL: old-domain.com/deceased-persons-2021/?id=1500_betty-white The new URL: new-...
1 vote
1 answer
90 views
prevent wordpress from changing/rewriting url ip with the siteurl settings
Scenario: trying to access Wordpress from local machine lampp stack using my mobile phone(connected in same wifi). and if possible use an external ip of the router and forward all request from a port ...
0 votes
1 answer
60 views
Can't understand how to use add_rewrite_rule [closed]
It seems terribly unintuitive to me... I've looked through dozens of examples on different resources but still can't understand how to change the custom post type slug with this, or completely remove ...
1 vote
0 answers
30 views
How to Programmatically Replace Characters in WooCommerce Product Slugs?
I'm trying to adjust the URL structure of my WooCommerce product slugs by replacing specific characters programmatically. Here's my current situation: Product Title: Desk Flag 15x22,5 Cm Current slug ...
1 vote
1 answer
66 views
URL Rewriting in Wordpress for only one specific page
I have a Wordpress website where I created a page called "products". In this page, I have a php script that get a parameter ("CD_Produit") from the URL, and show a specific result. ...
0 votes
1 answer
133 views
How to change the url of the archive page to be inside the custom post type
I made the custom post type named "News" and I have a static page load for url.com/news Currently, the archive page loads with this url: url.com/?post_type=news How do I make it so that the ...
1 vote
0 answers
22 views
How to redirect URL to a subdomain except one folder that needs to go somewhere else
I'm trying to workout how to generate the correct code for my .htaccess I found the following code RewriteEngine On RewriteCond %{HTTP_HOST} !^subdir\.maindomain\.co.uk$ [NC] RewriteRule ^(.*)$ https:/...
0 votes
1 answer
52 views
Filtering output by two custom fields using posts_where and add_rewrite_rule
I'm using two custom fields in wordpress to filter a persons database (custom taxonomy = persons) by gender and age. I would like the domain path name to look like that: domain.com/persons/women/...
0 votes
1 answer
175 views
Display the content of another page from a specific URL
I have searched plugins, tutorials and forums but I can't find a solution to what I need. For example, I have 2 posts with different content, which are within url-1 and url-2. What I need is that url-...
1 vote
0 answers
57 views
make_clickable and parenthesis breaks the URL
The make_clickable function will convert a text URL into a clickable HREF. This works well, even with text URLs that contain a space. But consider this URL when typed into a post or comment box: ...