Questions tagged [permalinks]

A permanent link to an item (a blog post, an attachment, ...). The default structure is "?p=123", but WordPress can handle "pretty permalinks" and will rewrite them internally to the former version. If you have a question about special rewrite structures you should use the [url-rewriting] tag.

Filter by
Sorted by
Tagged with
0
votes
1answer
9 views

404 on wordpress multisite Permalink pretty URLs

I installed a fresh Wordpress site with multisite enabled on AWS ec2 ubuntu instance. I followed all the instructions during the setup. My .htaccess looks like below # BEGIN WordPress <IfModule ...
-1
votes
0answers
14 views

What does this permalink setting mean? [on hold]

I just took over the maintenance of a wordpress website. It was moved to a new hosting. I found out that several links on the page didn't work. In the permalink settings i found this entry: https:/...
0
votes
1answer
13 views

Why wordpress multisite root site showing blog prefix by force?

I have installed a directory base multisite in the localhost and create two subsites. The URL's are looking like as follows: Root Site: http://localhost/mcqacademy/ Subsite for English: http://...
0
votes
1answer
55 views

Changing URL from /%postname%/%post_id to /%category%/%postname%/%post_id%

I want to add categories to my URL structure. I'm sure this has been covered and I found many resources online to create the redirect code in .htaccess, but when I enter the code it doesn't work. ...
0
votes
0answers
10 views

post id or permalink auto-incrementing number and reset everyday

i wanna have a permalinks like this: *.com/2019/10/02/0001 *.com/2019/10/02/0002 *.com/2019/10/02/0003 ... *.com/2019/10/02/nnnn . and the next they the number should be reset to 0001, and ...
0
votes
0answers
24 views

All files in public_html, Cannot launch WordPress site via wp-admin

my registered URL is casualtyclaimscontainment.com I developed the site on AMPPS using the URL kriswebpg.test I uploaded site to https://dallas124.mysitehosted.com I have tried everything in my ...
0
votes
1answer
13 views

Possible for Category Base and Custom post Type to share the same slug/permalink?

Rebuilding an author/writer website in WordPress. I have a custom post type of books. Working OK. I'd also like my category base to be books. Not working as yet. So a book URL would be like: https:...
0
votes
2answers
128 views

Giving specific category posts its own permalink structure returns 404

i am trying to give a specific category posts it's own permalink. Followed the steps from this topic (Give specific category its own permalink structure) but the posts are giving a 404 error. Cleared ...
0
votes
0answers
15 views

Permalink changes after several minutes after saving post

I once created a script for a website of mine that looks at who (which author) saves the page. Based on this information, a script ensures that the page that this author creates is automatically saved ...
0
votes
1answer
10 views

Does having category name in permalinks affect SEO when having a post in multiple categories?

If I change the permalink structure to the following in the Permalinks settings page in WordPress: www.example.com/%category%/%postname%/ Then I create a post with the slug my-post and add two ...
0
votes
0answers
10 views

wordpress permalinks with product name

I want to ask , how we will display product name with category name at permalinks in wordpress. By making it default and shop base with category it will display categroy name but not product name, how ...
0
votes
0answers
36 views

Permalink Rewrite Rule Issue in CPT

For a custom post type blog in my site, I want to have the following permalink structure: mysite.com/blog/post-slug/post-id I am using the following code in my theme: function blog_links($...
1
vote
2answers
22 views

.htaccess file missing from Wordpress install directory

This is occuring on my local machine, Lubuntu 18.04 with apache2 and Php 7.2.15. Steps tried: Enable hidden files No .htaccess file seen: https://nimb.ws/4YJfDT Switch permalink structure to ...
0
votes
0answers
17 views

Category and Sub-Category permalink structure/404

So i know this has been asked countless times and there are numerous posts about it all over the internet but after extensive trial/error and research i haven't found the proper fix. Maybe one you ...
0
votes
0answers
14 views

Add a prefix to the Wordpress Home directory

I have a code like the following, <?php function link_fn( $url ){ $lang = get_query_var('lang', false); if( $lang !== false ) { $url = $...
-1
votes
0answers
11 views

Search Permalink seprerator from from + to -

I have searched all over google but nothing seems to work, Is there any way to make wp search permalink structure from + or space to - I.E https://wordpress.stackexchange.com/search/ask+your+...
0
votes
0answers
22 views

Different Post URL Base for Specific Categories

By default WordPress allows you to edit the permalink structure: Ideally wanting to have most posts as a simple URL such as site/post-name. However a few categories such as events, news, and albums I'...
0
votes
0answers
12 views

How to allow dot(.) in slug for custom pages

For this question, I googled and found 2 results. But what I want to do is allow dots in slugs for some pages only. I found results are showing to add a function to function.php file. But it will ...
1
vote
0answers
21 views

How to check a post exist when the permalink has post id in it?

This is my permalink structure /%post_id%-%postname%/ https://example.com/in/140521-test-post/ https://example.com/us/140524-second-post/ How can I check "test-post" exist or not? I'm using wpml ...
1
vote
0answers
26 views

Permalinks dropping after 3-4 weeks with no changes in theme or plugins

Running a site with custom logins and custom post types, we are finding that the permalinks need reset every 3-4 weeks. The symptom: The site will begin dropping 404 errors and the .com/login is now ...
0
votes
1answer
24 views

Extra url paths as variable

I have this WordPress pretty permalinks structure: https://example.com/house/name (where house define post_type) I want this one url: https://example.com/house/name/2/3 (that works like https://...
0
votes
0answers
42 views

Replacing + sign to - in wp Search Permalink

I have really tried my best but nothing is working out, I want to replace my wp search permalink [spaces] and + to - Example: https://wordpress.stackexchange.com/search/i love you to https://...
0
votes
0answers
47 views

How to setup permalink structure for categories, sub-categories, custom post types and custom taxonomies?

I'm struggling to figure out how to setup the URL structure on a new WordPress. I've tried several combinations of custom (and default) post types, custom (and default) taxonomies, permalink plugins, ...
0
votes
0answers
27 views

WordPress Multisite ABSPATH and get_home_path() to check for htaccess or web.config file

Looking to update my WP Login Flow open source plugin to prevent using rewrite URLs in things like Lost Password, Login, Register, if the rewrite file does not exist on the server -- but need some ...
0
votes
0answers
10 views

Flushing rewrite rules enables to see an article, but I didnt change anything

I know this wont be so precizely written, but I cant describe it any better. Im in admin, and I pressed the save button on "permalinks option". I have an article: www.example.com/video/title which ...
0
votes
0answers
17 views

Cannot Create New Pages + permalinks stopped working (Windows Server)

I have WordPress running on a windows server. The installation has been working correctly for about a month, but a few days ago I noticed that I could not follow permalinks to pages on my site anymore ...
0
votes
0answers
24 views

Problem with permalinks getting reset

I'm having a problem with a website I recently published (aimga.ca). I did all of the development work on a test subdomain and everything was working ok. Then I backed up the existing site that was ...
2
votes
1answer
20 views

WordPress 403 issue when passing parameters in the URL

I have been experiencing a 403 error when passing parameters in the URL of a WordPress website. Has anyone else experienced this and have a solution? The url being passed is {{website_url}}/contact-...
1
vote
0answers
64 views

The default code for “posts_nav_link” on category.php isn't working

I am trying to make my own simple WP theme from scratch and I have run in to some difficulties. Maybe someone can help. I have a category named "News", whose slug is "news". The permalink structure ...
0
votes
0answers
19 views

Custom post shows 404 after theme change

i have a custom post created using a plugin. But randomly say if i change the theme the post shows a 404. I tried flush_rewrite_rules() and resaving the permalink, theme change but still it shows 404. ...
1
vote
0answers
18 views

Multiple permalinks for Wordpress post types

I've set a custom permalink on Wordpress so all my blog posts end up as example.com/blog/post-title Where post-title is the title of the post. This helps keep track of all the blog posts vs pages, ...
0
votes
0answers
21 views

Wordpress Category Title Repeat in Slug

In my wordpress website, category names in categories are constantly repeated and I want to reduce these pages to 404. Example: This is the correct one www.example.com/category_name but www....
1
vote
0answers
38 views

Changes in permalink structure in WordPress and how to apply to in-site links

I have some work for wordPress internationalization. Actually, I got good results. Part of my code: add_filter( 'query_vars', 'queryi18n' ); function queryi18n( $query_vars ){ $query_vars[] = '...
1
vote
0answers
33 views

Need to add trailing slash to all internal links relative and absolute

i need to rewrite the url path of my href internal links. I got into my site relative and absolute links. ex. <a href="https://www.sitename.com/pippo" <a href="/pippo" <a href="/pippo/" I ...
1
vote
0answers
47 views

Wordpress Persistent connection rule does not work for “posts”

add_action( 'init', 'rule' ); function rule() { add_rewrite_rule( '^(en|fr|de|ru)/(.?.+?)/?$', 'index.php?lang=$matches[1]&pagename=$matches[2]', 'top'...
0
votes
0answers
26 views

Cannot publish posts or pages when I change permalink structure

I changed the permalink structure to be just /%postname%/ without the index.php, I've added the required lines to the .htaccess file, Allowed override in the httpd.conf but it still doesn't work. ...
0
votes
1answer
19 views

Show date as permalink for custom post type instead of post name

I created a custom post type and specified a rewrite to change the permalink to /old-donuts/. See code below: function donut_newsletters_post_type() { $labels = array( 'name' => '🍩 ...
0
votes
0answers
23 views

Permalinks are not working in Wordpress

I deployed My Wordpress Blog in one of my subdomains in Digital Ocean. I am running apache2 as my webserver. .htaccess file related to my WordPress installation: # BEGIN WordPress <IfModule ...
1
vote
0answers
28 views

Read GET parameters in APACHE Mod Rewrite rules for WordPress categories in Posts

I'm a self-taught programmer with a very little experience in WordPress programming. I'm using a post permalink structure in this way: https://domain.com/parent-category/child-category/post-title-...
0
votes
1answer
11 views

How can I get custom post types to recognize pretty permalink variables?

I'm using PODS to create a custom post type called "automobile" on my site. This results in a permalink structure that looks like this: /automobile/automobile-page I want to be able to send ...
0
votes
1answer
10 views

Return value of get_permalink(0) and get_the_title(0)

I'm new to wordpress and I'm following a tutorial right now but I don't understand wordpresses behaviour. I'm trying to change the title of a sidebar which lists the parentpage and it's childpages, ...
0
votes
0answers
14 views

how can custom permalink structure use for specify custom post type

generated url some thing like this http://domain/test/testing-web002/ here test = custom_taxonomy(we can say custom category slug) and testing-web002 = custom post slug its showing 404 error at ...
1
vote
1answer
18 views

Adding parent pages to posts

I want to add a parent page to my blog posts so I can track their traffic together on Analytics. I want to avoid adding extra tracking code in the header to avoid slowing my site down. So what I want ...
0
votes
1answer
21 views

How to edit button permalink inside function.php using a child theme?

I am using a WordPress theme called "business one page" and it has a slider with Learn-more button. Here is a demo of the theme Business-One-Page I am using a child theme and I want to change the ...
0
votes
1answer
58 views

Adding URL prefix for foreign language support

I've done some research to use it for my own complicated system (Using Plugin or Functions.php). In fact, what I want to do is add a prefix at the very beginning of the URL structure of WordPress and ...
0
votes
0answers
23 views

How to make archive of categories subcategories for custom post pages that distinguish between CPT

I have a problem I have 4 different custom post types readymade_public readymade_private collections_public collections_private And the structure is something like this is going to work ...
0
votes
2answers
16 views

How to stop a permalink redirecting to a page whit same slug but different permalink

I have this CPT that has this permalink http://example.com/area-cliente/colecciones/basicos/ and this other page http://example.com/basicos/ And going to http://example.com/area-cliente/...
1
vote
1answer
23 views

WordPress Sub domain

I installed WordPress on sub domain and I have Permalinks as domain/subdomain.com. In this way this website is working correctly and the main website is accessible via subdomain.domain.com as well ...
0
votes
1answer
31 views

WP posts using index.php instead of single.php

The posts on my custom theme are using the index.php file instead of single.php _ I have looked through at least 10 questions on SO_ although many of them are very old _ Some answers said that if ...
0
votes
0answers
15 views

Get taxonomy link with post type slug prefix

I have changed my post type URL structure to have the taxonomy type in the URL as well by doing this: In register_post_type (Post type: release): 'rewrite' => array('slug' => __('releases/%...