Questions tagged [relative-urls]
The relative-urls tag has no summary.
21 questions
2 votes
2 answers
381 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
97 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
711 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
398 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 ...
2 votes
1 answer
141 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
198 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
143 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 ...
6 votes
2 answers
4k 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
5k 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
793 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
114 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
188 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
196 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
18k 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 ...