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.

Filter by
Sorted by
Tagged with
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
60 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
2answers
35 views

How to change the category url jusy show /category/%category_id% in wordpress?

I want to change the article url as www.***.com/post/%post_id% For example, www.***.com/post/156/ And now, I did it. But I don't know how to change the category like this. For example, www.***....
1
vote
1answer
253 views

My #id is not showing in the url when the user clicks on the anchor tag

I am working on my WordPress website and when the user clicks on the <a href="#id"> tag, the #id is not showing in the URL and because of that, when the user clicks on the back button, it is ...
1
vote
0answers
41 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 ...
0
votes
0answers
15 views

any way to mark a URL in my list after /#/ (plugin user bookmarks)

I would like to know if there is any way to bookmark a url after # example: mysite.com/series/dragon-ball-super/#/?playlistId=0&videoId=3. But by adding it to my bookmarks this comes out by ...
3
votes
2answers
434 views

Why does WordPress automatically redirect URLs with the parameter “name=” to a different page?

How do I disable this automatic redirect of the name variable so that I can use it on my call booking landing page? I'm setting up a call booking page here: https://www.themcmethod.com/talk/ I want ...
1
vote
2answers
48 views

How to change only the home page / front page url on wordpress

i want to change only the url/permalink of the home page for example like this mysite.com to mysite.com/blog . Guys don't think i am a noob, i know that there is the option on wordpress dashboard ...
0
votes
0answers
87 views

Two Custom Post Types in Permalink + Duplicate Slugs Issue

I'm having some trouble with WP adding those numbers onto the end of my slugs if it thinks it's a duplicate slug. The issue, though, is that it's not actually a fully duplicate URL, since I include a ...
0
votes
0answers
42 views

How to create a WordPress PAGE in another folder?

I have a URL Shortening script running on the homepage while there is a WordPress installation on another folder named blog. So that would look like this https://homepage.com/blog The problem is that ...
0
votes
0answers
14 views

How to allow URL with filename & extension in wordpress?

How to create custom URL routes? I wanted to generate csv using specific url for ex. https://www.example.com/exportcsv.csv Is this possible via WordPress? I have tried with querystring and all the ...
0
votes
0answers
24 views

How do I remove the pagination terms after a single URL?

Here is a single URL 10stuffs(dot)com/technews. and it also displays the result when we add pagination terms like 10stuffs(dot)com/technews/page/2. I just want to keep the URL like this 10stuffs(dot)...
0
votes
0answers
13 views

Taxonomy term hierarchy to work with single post as well as taxonomy pages

I have a website which has a CPT of products and product categories with subcategories. I want the url sctructure for taxonomy pages and single pages to follow url/products/term/single-product and url/...
0
votes
0answers
27 views

Subpages URLs for Custom Post Type

I have a CPT named "especialidades", so right now the page have URLs likes this ones: webpage.com/especialidades/some-name webpage.com/especialidades/other-name The template for this CPT shows tabs, ...
0
votes
1answer
19 views

No url when downloading PDF

I've a password protected webpage where uses can download PDFs. When clicking on the Download button, the PDF is uploaded by creating a URL, which works nice but that URL is then visible for everyone. ...
0
votes
1answer
17 views

What happens when someone goes to the root URL in WordPress Multisite?

I'm going to set up a multisite for www.company.com/uk and www.company.com/usa. What will the browser show if someone just puts in www.company.com (which is the current widely used URL)?
0
votes
0answers
24 views

Create 600 links to separate files on google drive

For an educational project about climate change, I need to create 600 links pointing toward 600 separate files located on google drive. I have the list of all 600 shareable URL to the files but I don'...
0
votes
0answers
28 views

Only the index.php/homepage open while other pages are not opening

I am developing WordPress theme on local server. Only homepage/index.php is working while other pages in menu are not opening. I applied the following: change "AllowOverride None to AllowOverride ...
0
votes
0answers
21 views

Category url decoding problem, refresh page is 404

I am working on a wordpress v5.2.4 site that has Arabic language and words in URL which is causing an odd issue. I create a category: خطوط إرشاد which is creating a slug url: www.mysite.com/خطوط-...
0
votes
1answer
13 views

Incorrect page shown

I am creating a website for someone to replace their old site. I put the URL of the old site into into the site address in my general settings, and now I can’t get it to change back to the site I was ...
-1
votes
1answer
30 views

change pagination url

Currently I’m having URL for pagination pages as: http://www.example.com/category_name/page/2 But I need to change this URL structure as: http://www.example.com/category_name/?page=2 etc. any ...
0
votes
0answers
10 views

How can I create automatically changing urls?

I have following issue: I need to add CTA Buttons to my site, that generate, whenever someone clicks on them, a new url. The URL Structure has to be like this: example.com/ref/1001/test The part ...
0
votes
0answers
14 views

How to block the WP admin menus form loading depending on the current URL?

How can I block the WordPress admin menus and admin bar from loading depending on the URL. So that when a user visits a certain page in the admin area he will only see the wp-content block while the ...
0
votes
1answer
14 views

Adding Facebook's image and meta description retrieval capabilities to a WordPress post

When a URL is shared on Facebook, Facebook is able to automatically pull a relevant image and the meta description for use in the post. Would it be possible to code similar functionality into ...
0
votes
0answers
200 views

cURL timeout error 28 in Site Health and Sucuri SiteCheck

I run a server hosting multiple WordPress installations with the iThemes Security Pro plugin installed. One of the things that this plugin does is it uses Sucuri SiteCheck to scan the site for ...
0
votes
0answers
19 views

Url for random post (in specific category)

I know that a URL formed: samplewebsite.com/?random will redirect to a random post. Is it possible to create a URL that will redirect to a random post within a particular category? samplewebsite....
1
vote
1answer
41 views

Special domain for a page

I have a wp instalation on example.com and want to have secondary.com to show contents of example.com/b (b is a page) but keep secondary.com in the url (not secondary.com/b) I tried this approach: ...
0
votes
0answers
34 views

Allow duplicate slugs for pages and posts

My use case is: I have a two pages, they each have a meta information "language". Posts and pages having same language cannot have the same slug, but with different slugs it is totally fine. Currently ...
0
votes
0answers
123 views

URLs for (MultiSite) link images are always relative

How I can I get WordPress to stop making link-image URLs relative? I'm trying to add logos to the blog-roll widget, but WordPress makes the URLs of the images relative to the current blog. For ...
0
votes
1answer
31 views

bloginfo url in javascript

I'm trying to set <?php bloginfo('template_url'); ?> in a variable on Javascript, and then to set src of an img element, but in the html it's been printed as src="<?php bloginfo('template_url'...
0
votes
0answers
4 views

Add ?piura final url of products generated

I need to add via the functions.php at the end of the parameter ?Piura. Since I am using this code so that all users who have the ?Piura parameter have a special code. The problem is that the url ...
0
votes
0answers
25 views

Change url based on logged in user/different root?

I'm not sure how to word this question so I'm sure the answer is out there but I'm using the wrong search words. I have a URL where the end remains the same, but the beginning changes based on the ...
0
votes
1answer
15 views

How to show a full page when someone links directly to an image on my site

My site contains a lot of custom images. I've searched the web and found a lot of websites that link directly to the images on my site. Meaning, they link to the jpeg itself, not to the actual page on ...
0
votes
1answer
42 views

Custom Post Type Category URL

I've created a simple CPT named shop which contains some shop items. After that I've added category support to it which works fine ('taxonomies' => array( 'category' )). Then I created template-...
0
votes
2answers
192 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
1answer
82 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
1answer
178 views

sub menu link is not working

I am using a theme which is showing table of content by using this code : <div class="menu-panel"> <h3>' . __('Table of Contents', 'odrin') . '</h3> ...
0
votes
0answers
26 views

Dynamic URL with custom tag permalink

I'm trying to have some dynamic URL. I made a custom tag for my permalink to show the language of the blog, but i'm facing an issue with dynamic URL. The problem is that it only consider 'fr' in my ...
1
vote
1answer
71 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 ...
0
votes
1answer
19 views

Is there a way to test if a URL is part of the current blog?

In a scenario where, say, your plugin or theme has been given a URL. You want to know, is this URL a URL from this very blog? How would you test if it is?
3
votes
3answers
85 views

Why WordPress automatically removes http from the url of my website's sub domain?

I am witnessing a strange problem in WordPress which automatically removes 'http' from my sub domain link. I don't know why this is happening. Note that my domain is https while it's subdomain is ...
1
vote
1answer
23 views

URL parsing - what is it?

I am reading the conversation about WP_USE_THEMES and I don't understand the term 'URL parsing'. Can someone please explain that to me in the context of Wordpress ? Google didn't produce significant ...
0
votes
1answer
27 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://...
4
votes
2answers
294 views

How to check if feed URL was requested?

I'm writing a plugin to block some pages to anonymous users on my site. I already blocked some pages but I can't get to identify the feed page my-wordpress-site.com/feed. I've tried: $GLOBALS['...
0
votes
0answers
16 views

Having multiple URL structure for wordpress blog

I'm moving a blog from hubspot to wordpress and i'm facing an issue, I would like to have multiple structure URLs for the blog, we are a company and the goal is to keep separate news about company, ...
0
votes
1answer
270 views

Query custom post type and custom field by URL parameters

I have a custom post type staff. and a custom field alphabet for posts in that post type. Each staff will be assigned to a letter either A or B ... Z based on the first letter of the staff's name. On ...
1
vote
1answer
19 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 ...
0
votes
0answers
8 views

How can I stop WP from appending a URL to a link that calls a JS function?

I would like to call a JS function on the onClick() event. The problem is WP keeps adding the URL. The function doesn't work because it results in a 404 error. Thanks in advance.
-1
votes
1answer
217 views

Why my wordpress site URL does not begin with my domain?

I'm hosting a web app on my-app.pro, and it's the main domain for the hosting. The containing folder is /home/my-app.pro/www. I'm using a framework, and it does the rewriting job, so all my pages are ...
0
votes
1answer
93 views

Creating a return url for getting data from external api

I am working on a plugin with a payment system. I need to provide a return url for the payment gateway in order to receive its answers. I don't want to create a specific page but to have a kind of ...

1 2
3
4 5
28