I'm using Bolt CMS and I'm trying to create a link to an external website.
So I'm getting a record from a contenttype (this works), but when I try to link to this record using a href, my domain is added in the url.
Whatever I do, I'm unable to link to an external website.
Link
links to "mydomain.com/www.externalurl.com", while I just want to be directed to www.externalurl.com.
I'm expecting the solution to be very simple, but so far I haven't found the answer...
Thank you for your help!
try
Link
it should work as long as you don't have 'http://' in record.contentlink
Related
I'm trying to create a short and friendly link so that when the server receives the petition it will redirect you to the real link of the website.
Example:
This is the real link: mywebsite.com/profile.php?user=MikeRubio55
And I want it to look like this for sharing purposes: mywebsite.com/MikeRubio55
So what I'm looking for is the server receives this link (mywebsite.com/MikeRubio55) and automatically redirect and display this url (mywebsite.com/profile.php?user=MikeRubio55)
I've been searching for solutions and trying to make some changes to the .htaccess file to achieve this purpose but up until now I've had no success unfortunately.
Thanks in advance for all your suggestions and help.
I am trying to add a simple link to text in google site.
For some unknown reason, it doesn't seem to be working.
<p>my link</p>
When I click on it I see the error:
The requested URL /embeds/16cb204cf3a9d4d223a0a3fd8b0eec5d/www.google.com was not found on this server. That’s all we know
Any idea what is causing this error? I am aware I can just use google's insert link graphical interface, but I am trying to understand why is coding not working.
Your code is is bit incorrect, have you tried out this.
<p>My url
I've got a small flask site for my old wow guild and I have been unsuccessful in getting google to read my sitemap.xml file. I was able to successful verify my site using googles Search Console and it seems to crawl it just fine but when I go to submit my sitemap, it lists the status as "Couldn't fetch". When I click on that for more info all it says is "Sitemap could not be read" (not helpful)
I originally used a sitemap generator website (forgot which one) to create the file and then added it to my route file like this:
#main.route('/sitemap.xml')
def static_from_root():
return send_from_directory(app.static_folder, request.path[1:])
If I navigated to www.mysite.us/sitemap.xml it would display the expected results but google was unable to fetch it.
I then changed things around and started using flask-sitemap to generate it like this:
#ext.register_generator
def index():
yield 'main.index', {}
This also works fine when I navigate directly to the file but google again does not like this.
I'm at a loss. There doesn't seem to but any way to get help from google on this and so far my interweb searches aren't turning up anything helpful.
For reference, here is the current sitemap link: www.renewedhope.us/sitemap.xml
I finally got it figured out. This seems to go against what google was advising but I submitted the sitemap as http://renewedhope.us/sitemap.xml and that finally worked.
From their documentation:
Use consistent, fully-qualified URLs. Google will crawl your URLs
exactly as listed. For instance, if your site is at
https://www.example.com/, don't specify a URL as https://example.com/
(missing www) or ./mypage.html (a relative URL).
I think that only applies to the sitemap document itself.
When submitting the sitemap to google, I tried...
http://www.renewedhope.us/sitemap.xml
https://www.renewedhope.us/sitemap.xml
https://renewedhope.us/sitemap.xml
The only format that they were able to fetch the sitemap from was:
http://renewedhope.us/sitemap.xml
Hope this information might help someone else facing the same issue :)
put this tag in your robots.txt file Sitemap: domainname.com/sitemap.xml. Hope this will be helpful.
Sorry for the basic question, but couldn't find a similar answer.
If I write this link: click me.
On my HTML page, and host that page at google.com - When I navigate to that page the link will automagically link to google.com/about.
My question is, how does it do that? Does the browser just know the internal link from the page you are currently on? Is it the server calculating the links? How does it know to add the google.com?
I'm building a web crawler that finds links on a site (including these internal links), and not sure if I can just add in the google.com or if browsers work out internal links a different way.
I'm trying to track from where my links are clicked.
Exemple I place a link to my website on facebook, instagram, linkedin.
I would like to know where my link is clicked most of the time.
bit.ly does it and I don't know how.
One of my ideas was to identify links like
www.exemple.com/facebook_url
www.exemple.com/instagram_url
but if I can avoid this it would be perfect.
Any idea ? :)
I found how !
req.headers.referer;
give me the url used to redirect my user :)
The simplest way to do this would be to set up a web server with redirects and analytics already built in. You could also build your own analytics using a redirecting html + js
If you have access to a webserver, you could use PHP to do a conditional redirect.