Questions tagged [relative-urls]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
49 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
1answer
36 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/...
1
vote
0answers
58 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
2answers
111 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 ...
2
votes
2answers
1k 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
2answers
3k 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
1answer
411 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
3answers
775 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
1answer
68 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
1answer
146 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
2answers
173 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....
8
votes
1answer
7k 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
2answers
197 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 ...
2
votes
5answers
2k 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
3answers
75 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
1answer
640 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
2answers
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 ...
6
votes
3answers
8k 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 ...