Questions tagged [urls]

A uniform resource locator, abbreviated URL, also known as web address, is a specific character string that constitutes a reference to a resource.

511 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
9
votes
1answer
202 views

Prevent “main” WPMU site_url() being returned in functions

I've noticed that in a WordPress MU install with domain mapping enabled, some functions return URIs that don't use the current WPMU site's primary domain name which possibly means they are "WPMU ...
5
votes
1answer
862 views

Change the author slug from nickname to ID

I've changed the default registering option by allowing people to sign up with their e-mail addresses. They also have an option to add their firstname, lastname but it's not required. // Allow email ...
4
votes
1answer
1k views

Wordpress on a subdirectory of Laravel - Wordpress pretty permalinks inner page shows laravel

I read lots of discussions about this and found no solution. I have a Laravel web app and added a Wordpress site in a subdirectory. This is what my .htaccess looks like within the public folder: <...
3
votes
0answers
120 views

How to create a custom page base on URL for Wordpress?

How can I achieve the following: example.com/mycategory/my-first-page example.com/mycategory/a-random-file-name-page If the user enters http://example.com/mycategory/*, it will load a standard ...
3
votes
0answers
210 views

Adding target and _blank as it's value to the allowedtags

I know that WordPress uses KSES to parse HTML and strip invalid XHTML so I took control of $allowedtags in my themes functions.php file inside a function then added 'target' keyed to an array which ...
2
votes
0answers
21 views

Change permalink rule if category is called “uncategorized”

My current permalink looks like this /%category%/%postname% Basically I want something like this: If the category of the post is called "Uncategorized" then change the permalink rule from "/%...
2
votes
0answers
23 views

How can I change all links on pages to point to a different domain from where the site is hosted?

I saw this question: How can I change permalinks to use a different domain and path from where the blog is hosted? and was wondering if someone can help me. We're hosting a wordpress blog on WP ...
2
votes
0answers
282 views

Custom URL rewrite to specific page template

I have a standalone page with the slug: hubv2 that is using a custom page template which runs a small React app. The React app handles in browser routing and it works fine. For example I can hit /...
2
votes
0answers
197 views

Best way of removing emoji support from url / slug only

Couldn't find anything on the topic. I guess something could be done with the 'wp_unique_post_slug' filter but how would I go about just removing the emojis from the slug? I've tried all kinds of ...
2
votes
2answers
2k views

How to append a URL parameter to all outbound URLs

Is it possible to append ?ref=myref to all external URLs? If so I'm guessing I will also need to check if a ? already exists and use & if so. I'm a WP noob just coming from Joomla, any tips / ...
2
votes
1answer
187 views

Add a URL prefix to permalinks of News category and sub-categories of posts only

I changed http://domain.com/%postname%/ to http://domain.com/news/%postname%/ using the answer provided here: Add a URL prefix to permalinks of one category of posts only. But I am having issues with ...
2
votes
1answer
310 views

Wordpress .htaccess - route other URLs to another app

I need help in WordPress .htaccess. My projects name is Project this is WordPress and onepage website, inside this I have one more project that is built in CI named app. What I want is, if someone ...
2
votes
0answers
186 views

Allow UTF-8 characters in the user slug part of URL

I want to be able to specify a custom slug for an author URL that may contain UTF-8 characters. I used the plugin Edit Author Slug but it does not accept UTF8 characters like accented characters, ...
2
votes
1answer
35 views

WordPress converting ../url to http://../url

I have a page on WordPress, it's slug is http://example/wordpress/page. I also have a second page, and it's slug is http://example/wordpress/page2. I want to a link in the first page that links to ...
2
votes
1answer
772 views

Wordpress custom URLs for pagination pages

I’m trying to find a way to make custom URLs for each pagination page separated by <!--nextpage--> tag. For example, if the first page is: myblog.com/my-topic/ the second one will be: myblog....
2
votes
0answers
165 views

add_rewrite_rule won't work

I did it in the past and it did work. But this time it won't work and I can't figure out why. The difference is the version of Wordpress and the version of WPML. So, I have the latest version of both:...
2
votes
1answer
499 views

preserve url parameters from affliliate sites

Please help, I am using a wp site as medium between e.g. a news site lets call it A and the actual site that e.g. sells a particular product lets call it B. A ---- medium site --- B news site ---- ...
2
votes
0answers
538 views

Wordpress url image redirect to the homepage

Need help please. I have run into an issue with image pages on my site. All url image, redirect to the homepage. I have double check in YOAST SEO and Redirection and found nothing. img: ...
2
votes
1answer
1k views

Can two products with the same name but different category produce unique URLs?

In the permalinks settings I have /courses/%product_cat%. Using WooCommerce I created two different Courses that are named "English", but they have different categories that end up making my urls look ...
2
votes
1answer
432 views

Password protected page Hash url

I am using owl carosel which takes a hash url to go to a specific slide (http://www.owlcarousel.owlgraphic.com/demos/urlhashnav.html#five) Lets say I want to visit a password protected page with the ...
2
votes
2answers
2k views

Add a query string to ALL links on site

Our client would like to embed his site into an iframe in their software backend. I get a query string on the first link but need to make sure that string persists across URLs for all links and ...
2
votes
1answer
498 views

custom taxonomy and custom post type url conflict

i am having one serious url issue. there is news custom post type. it's slug is news. News taxonomy slug: news_category News taxonomy url is: http://domain.com/news_category/press-release i want ...
2
votes
1answer
185 views

CPT posts listed by category with custom rewrite URL, please help!

Here is what I'm trying to do: I have 10 total dessert recipes (in shared dessert category) that are divided by 2 custom post types. I want to create 3 different views of these posts with the custom ...
2
votes
1answer
46 views

How is WordPress manipulating the posts like there are folders?

As you know, a WordPress post can usually be seen going to a link similar to this: myblog.com/2014/03/27/sample-post/ There is no folder named 2014, 03, 27 or sample-post in the blog. Until now, I ...
2
votes
2answers
1k views

Multiple post categories - single permalink

I created a post which is assigned to multiple categories. Eg: I have a post "My Post", and I put it in "foo" and "bar" categories. Now my article will have two permalinks, "/foo/my-post" and "/bar/...
2
votes
1answer
285 views

How to create custom taxonomy URLs without taxonomy name?

I have a website that lists businesses in different cities (this is a niche site, so all businesses have the same "classification"). For starters I created a CPT for locations and a taxonomy called "...
2
votes
1answer
506 views

Wordpress address URL keeps dropping the www

My Wordpress Address (URL) in general settings keeps losing the www from the URL - I type in http://www.domain.com and it saves and works fine. Next time I go in the address has changed to http://...
2
votes
0answers
472 views

Pages redirected to attachment post

THE SETUP I'm using WordPress 3.4.2 with Magic Fields 2 plugin. Using MagicFields2, I've added a custom field to the builtin 'page' post type. This field is called 'section_header' (which is ...
2
votes
1answer
234 views

Which of WordPress's .php files need to be directly accessible via HTTP?

I'm trying to tighten up security on my WordPress installation, and one of the things that seems like it might be a good idea is preventing all of the internal-use .php files from being accessed ...
2
votes
1answer
3k views

Remove site root trailing slash

I am using Wordpress for a "news" section on a e-commerce site. So the root of the wordpress install is in a sub-folder. www.mysite.com/news I have setup the home & site URL to reflect this in ...
1
vote
0answers
18 views

Why Wordpress plugin url ajax doesn't work?

I need to send information to the plugin folder via ajax. Wordpress has a function for the link "plugin_dir_url (__ FILE__)" which works properly but if I put it in ajax it doesn't work. Function: ...
1
vote
1answer
14 views

How may I see all the pages on my wordpress website and see when they were created?

My wordpress website has been hacked with malware and it has generated unwanted spam pages on my website without me knowing. I need to remove the spam pages. Is there a way to see a comprehensive list ...
1
vote
1answer
19 views

Added slug after URL permalink last slash returns different content

I'm a webdev but have zero wordpress experience, and I'm helping a friend. So I have permalinks to posts in this format: https://example.com/some-slug/ However for some reason there are also links ...
1
vote
0answers
26 views

A clean custom rewrite rule for weekly archives

Weekly archives are nearly undocumented, but WordPress can produce them, which I want. Good. But the URLs are ugly, eg. http://example.com/?m=2020&w=18 This gets partially rewritten to /2020/?w=...
1
vote
0answers
36 views

create a subcatagory for a custom post type and out put url as posttype/subcategory/item

I have created a custom post type called 'game' using the CPTUI plugin, the plugin dev has been very helpful in helping solve some issues but what I am trying to achieve is beyond the scope of what ...
1
vote
0answers
26 views

Using 'Primary Category' in URL

I'm running into an issue where I want to set up categories in my URL (%category%/%postname%), but doing this will create multiple URLs for the same content if I select multiple categories. So, for ...
1
vote
0answers
14 views

How to bulk edit image url in featured image and product description?

I have tried a few plugins (free) but none update the url in featured product image and product descriptions. How can I update in bulk instead of doing one by one? If there any any plugin (...
1
vote
1answer
129 views

Dynamic content based on a URL parameter

So, I'm doing some wordpress development studies and classes, and now I got an project to work on, and need to get the following task done: I'm doing a telecom website. The site has a page called "Buy"...
1
vote
0answers
33 views

Rewrite Question Mark in Post Template to Make it Pretty URL

I hope you all are doing well and staying safe during these times. I was wondering if someone can help me figure out how to remove the question mark (?) in the URL. The URL I am trying to rewrite ...
1
vote
0answers
31 views

Is there a link parameter that will show me all my published pages?

Is there any way to display a loop of all the pages that are published on my website, via a link? (Even while logged out) For example, I can type in domain.com/?s=text and that will create a post ...
1
vote
0answers
19 views

Right url for custom post type

I have custom post type called news2, and its url is land/news2. The archive page url is working well but how can I set my taxonomy page and single page right // Change custom post type permalinks ...
1
vote
1answer
43 views

Preserve old website URL structure after migrating to Wordpress

Old (non-Wordpress) URL structure: "News" and "Gossip" are categories "Italy" and "Uk" are subcategories https://example.com/news/italy https://example.com/news/uk https://example.com/gossip/italy ...
1
vote
0answers
14 views

I want to add a new tag to Wordpress URL permastruct

I installed a TV SHOW plugin on my WordPress install. URLs are like this: https://www.mywebsite.com/tv-show/title-of-tvshow Now I would like to add a specific tag to redirect the user to the right ...
1
vote
1answer
20 views

Site url is not showing the home page

Marraxxxx.online is my website url, when i go to it, it gives me blanc page, only when i go to Marraxxxx.online/home the proper home page shows up correctly, how i can solve this plz? I want the ...
1
vote
0answers
12 views

How to redirect to clean links with this code

I have a website uses wildcard* i made a custom page called custom-page.php i used this code to access to this custom page RewriteCond %{THE_REQUEST} \h/custom-page\h RewriteCond %{REQUEST_URI} !^/...
1
vote
0answers
51 views

Dynamic URL based on user_metadata

I want to know how can I dynamically change the page a user is taken to when they select a URL....using wordpress user metadata fields? My users have either selected "male" or "female" as their ...
1
vote
0answers
37 views

Change pagination url format

I have a URL like this: example.com/blog/page/5 I want to change it to: example.com/blog/page-5 I tried using a RewriteRule like this: RewriteRule ^blog/page-([0-9]+) /blog/page/$1 but this ...
1
vote
1answer
66 views

Colon is Missing In My Website Url in Wordpress

add_action( 'init', function() { add_shortcode( 'site_url', function( $atts = null, $content = null ) { return site_url(); }); }); I'm Using The Short Code [site_url] and My Short ...
1
vote
1answer
18 views

Can I change the URL of a video, or upload a video to a specific URL?

Let's say a video has been uploaded to: https://www.example.com/wp-content/uploads/2019/08/2017-12-21_XXX.mp4 But the URL has to be: http://www.example.com/videos/12/2017-12-21_XXX.mp4 Is there ...
1
vote
0answers
22 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, ...

1
2 3 4 5
11