Questions tagged [relative-urls]
The relative-urls tag has no usage guidance.
21
questions
2
votes
2
answers
71
views
Should I change all relative links on my WordPress site to start with a slash like they used to on Joomla?
I have migrated from Joomla to WordPress and after migration I understood my relative URLs like /abc has changed to abc (the / is omitted.)
So if I am on page example.com/efg, my relative link seems ...
1
vote
2
answers
45
views
Does using relative base url href="./second-page" instead of hard coding URL href="https://www.example.com/second-page" affect SEO?
I have created a website recently and was checking if google has indexed my website on google console. My home page is indexed but my other leaf pages connected to my home page are not indexed yet.
&...
1
vote
1
answer
66
views
Problem of URLs with internal links with 'base href'
I've got a website with includes the following directive in the HEAD section:
<base href="https://example.com" />
Now, I want to create internal links to sections within the page '...
1
vote
1
answer
148
views
Is there any point to use absolute URLs for asset files like css/js for SEO optimization?
Should I use absolute paths for CSS or JS resources in <link and <script tags?
Is there any reason?
Some SEO optimization say fix it, should I do it for any reason?
I do not know why, if ...
1
vote
1
answer
74
views
Relative URL resolution for Microdata properties
The HTML Microdata Working Draft shows the following example:
Assuming a page at http://example.net/some/dataexample contains the following code:
<section itemscope itemtype="http://example.org/...
2
votes
0
answers
111
views
How can I make Xenu Link Sleuth check relative URLs?
I'm using an old free web crawler called Xenu Link Sleuth to find broken links on my site.
Normally it works well enough for my needs, but the site that I'm testing it on right now seems to ...
0
votes
2
answers
129
views
Facebook business page link on my website generates security check
I have a link on my website to my FB business page, it is the exact URL for the FB page, but whenever I try to access that link FB throws up a security check.
I'm making an attempt to use FB to ...
3
votes
2
answers
3k
views
Absolute or relative local URL in Schema.org JSON-LD?
I'm writing the Schema.org JSON-LD for a website now. For a url within my site, what will work / best practice?
"url": "http://myawesomesite.com/content.html"
or
"url": "/content.html"
8
votes
2
answers
4k
views
Speed comparison - absolute vs relative path links
Let's say I want to link to a parent directory (http://example.com/library/) from a subdirectory (http://example.com/library/html/basics/).
The link to the parent directory can be:
href="../../"
...
2
votes
1
answer
630
views
Schemaless URLs in canonical tags
Is it a problem to put a schemaless URL in a canonical tag?
Example: page URL is http://example.com while canonical tag is <link rel="canonical" href="//example.com" />.
6
votes
3
answers
1k
views
Can a <link /> element's href attribute be relative?
Can I use:
<link rel="alternate" hreflang="en" href="?l=en" />
to link pages with different languages for SEO (recommended for example by Google)? Can that URL be relative as in the example ...
1
vote
1
answer
98
views
Is it bad to link internal URL with http?
I have couple of domains. One in the singular form and other in the plural. The singular one has more traffic and plural one is new and has a chance of getting visitors on the homepage.
Both the ...
2
votes
1
answer
163
views
How to correctly display homepage "url" property value using Schema.org
How do you correctly display the url property value of your website's landing page?
Do I need to specify the full name like "www.example.com" or is "/" sufficient?
I currently have it like this:
&...
4
votes
2
answers
181
views
What is the impact on SEO, when internal links pointing to "/" or "example.com" (homepage)?
Let's assume I have website example.com and 1000s of inner pages.
Is there any difference in terms of SEO ranking (SERP) when I link to my home page from all the inner pages using "/" and "example....
9
votes
1
answer
15k
views
.htaccess rewrite URL leads to missing CSS
I am trying to make my url from this:
example.com/view.php?id=15
To this:
example.com/watch/15
My code in .htaccess is as follows:
Options -Indexes
Options +FollowSymlinks
RewriteEngine On
...
2
votes
2
answers
390
views
In terms of SEO, what are the pros and cons of using dot notation in links?
In terms of SEO, is there a best practice for writing the following relative links:
href="./foo"
href="foo"
What about href="../../../foo"? Is that "difficult" for a bot to follow?
I see most sites ...
3
votes
5
answers
3k
views
Absolute vs relative URLs for SEO [duplicate]
Am developing a website, I have used many anchor link in menu navigation and given absolute URL. Somewhere I read we can also use relatives URL in menu navigation.
From SEO point of view, which is ...
1
vote
3
answers
82
views
Best practice how to specifiy the link's destination
In my website, I have many files such contact.php, about.html etc. Right now I can call those file in my site by two methods.
Method 1:
<a href="http://www.example.com/contact.php">Contact<...
3
votes
1
answer
689
views
How do search engines handle protocol-relative links?
With many sites supporting but not requiring HTTPS now, there's an increase in protocol-relative links.
A protocol-relative link is one where the protocol is not specified, and the browser redirects ...
4
votes
2
answers
2k
views
Schema.org itemtype identifier - Should it use relative urls or https links?
In the age of SSL everywhere there are still major sites that lack it. Schema.org for example allows HTTPS but resolves naturally to HTTP. Seems like it would make sense to call upon the HTTPS ...
10
votes
3
answers
12k
views
Adding links: can I use //domain (double slash) for both https:// and http://
We are moving to https soon. I understand that it is smart to use //domain.com links and images src references.
Does the browser then first try https? and if not found http?
Is this supported by ...