How to show favicon in subdomain xml file - favicon

I have a subdomain feeds.domain.com, The root Directory for this subdomain is in main domain(/public_html/feeds/), I
I have placed favicon in root(/public_html/) and subdomain root(/public_html/feeds/) directory.
Now favicon is not displayed in browser for xml files that are in subdomain, xml files in other directory are showing favicon though.
Why browser is not picking favicon for xml from subdomain.
Example url where favicon not showing is feeds.domain.com/all/index.xml
Example url where favicon showing is www.domain.com/feeds/all/index.xml, (this is sub domain directory showing favicon when accessed directly from domain)
If I enter url feeds.domain.com/favicon.ico browser displays favicon.
Please see and suggest any possible way to do this.
Thanks.

I got it solved, I deleted all browser history and cleared browser cache now it is showing favicon, I hope this helps others too with same issue.
Thanks.

Related

favicon when opening image in new tab

When I right click on my website logo and click on open image in new tab, there is only a generic favicon.
Is there a way to pass the favicon information to this specific page?
not the websites favicon
Yes, if you have a favicon.ico file in the root directory of your website browsers should (as in: are supposed to) use this for any file served from that domain.

opencart favicons not showing up, if redirected the admin cannot log in

as suggested in the title, the site is working properly, but if i access it with the www. the favicons are not showing up, if i access the site without the www. the favicons show up fine. I tried redirecting all the users to the site without the www. with the help of the .httaccess file, but then the admin can't log in, the admin works only throught the www.site. I tried to change the config.php file, but with no luck
I fixed it myself eventually.
needed to put this line inside the .htaccess file:
Header set Access-Control-Allow-Origin "*"
Hope this helps someone.
Replace the favicon icon link in head of the html pages of your site with the following. Also the path of icon file should start with www -
<link rel="icon" href="your_path_to_icon_file" type="image/x-icon">

\Favicon.ico error in Jboss 7.1.1

I want to access my application without context root in JBoss 7.1.1
I have renamed application as ROOT.war and deployed it and
updated stadalone.xml
from
to
Am able to access the login page of my application, but moment I enter credentials and login I get "HTTP Status 404 - /favicon.ico".
I don't know where am going wrong. once i remove /favicon from URL and reload it, everything works normal. Please help me to resolve this problem.
Favicon stands for "Favorites Icon". It's the little icon beside your site's name in the favorites list, before the URL in the address bar and bookmarks folder and as a bookmarked website on the desktop in some operating systems.
The Favicon.ico shows as 404 means is that people with browsers that use favicon (Internet Explorer 5.0 +, Firefox, Opera and a most others) are visiting your site.
While seeing a 404 in your log files usually means that a visitor got the dreaded "404 Page Not Found" error, in this case it doesn't. All it means is that the default icon was shown instead of a custom one.
To get your Favicon to show there are 2 different ways to do this:
This is the easiest to do and it will show your icon no matter what page your visitor adds to their favorites. Simply upload your new icon to the main directory of your site, ie. www.example.com/favicon.ico
If you don't have access to your root directory (if your on a free server for example) or it you want a different favicon for certain pages, add this to the <head> of your html. (You can name your favicon whatever you'd like with this method)
<link rel="shortcut icon" href="/folder-name/logo.ico">
Or if you prefer to use the full URL:
<link rel="shortcut icon" href="http://example.com/favicon.ico">
Note:
If you upload a new Favicon, be sure to clear your cache for the new icon to show up.

How and why do they redirect their robots.txt file to their homepage on their site?

A robots.txt file is usually just a text file under your site root directory. For example, you can view www.amazon.com/robots.txt. But today, I found a website with a strange robots.txt file. If you just type
http://xli.bugs3.com/robots.txt
it does not show a text file, instead it still shows the home page of that site.
How could it happen and why does the webmaster do this?
Assuming a fairly conventional/basic server setup, where it is just files as you say, it could simply be a htaccess redirect rule. The rule might be something like "serve a file if it's on the server, otherwise just serve the index".
Or it might be an application server like Rails, where there's no direct relationship between the server directory structure and URL pathnames.

Redirecting users to the facebook app

If I have an app on facebook that's pulling the content from http://example.com for instance, is there a way I can stop people visting the example.com site and instead redirect them to the facebook app page?
Facebook is sending a POST variable called signed_request when the page is opened within a Fan Page Tab or the Canvas page of your App. Simply check if the POST variable is there and redirect to your App's Canvas page if not ;-)
Here you can read a bit how the signed_request is used inside an App.
Kalvin is close. Props to Kalvin :)
Setup your website to default to index.html
Move the real content of your site from index.html to index-fb.html
In index.html then place either the meta tag for redirection or just javascript for location.href='' script for redirection. The url to redirect to will be in the https://apps.facebook.com/{yourappname} format.
In facebook, update the app settings canvas app url from http://example.com to http://example.com/index-fb.html
1) Pull your content from your website from a subfolder
2) Redirect them from the index.html using a meta tag:
http://www.web-source.net/html_redirect.htm
A better way would be to check if the content is being displayed inside facebook and then redirect but I have no idea how to do that
Edit the .htaccess or conf.d file on your Apache web server (or the rewrite rules in IIS) to give a 301 Permenant Redirect.
Assuming you have Apache:
1.) Log into the box using ssh or some terminal emmulation program
2.) cd /etc/httpd/conf.d
3.) Locate the the configuration file for your site, edit it using vi, emacs, nano, or some text editor
4.) See here on how to write the rewrite rule.