So I have an MVC 2 website online right now. I set up my webmaster account over at google, and they want me to submit the robots.txt and sitemap.xml URL's of my site.
Directions are, "put them in your sites root directory", yeah yeah yeah I know, but this doesn't work with MVC, since everything is based off routing.
Is there a way I can set both these things up so I can access them directly by going like, www.domain.com/robots.txt and www.domain.com/sitemap.xml ?
Both the the files are currently in my root directory, I just don't know how to set it up so I can access them like that using that type of URL.
Thanks!
this did it :)
I'm getting a "Does not implement IController" error on images and robots.txt in MVC2
Related
I tried changing the base url and base secure url together with base path url and secure base path url but upon changing it from https://test.com/ to https://test.com/sh/shop it breaks all the pages in the frontend. Any solution for this? Would really appreaciate any help thanks
Got you.
So you want to create a multi site store.
Magento has this feature. You need to create two single store websites in magento admin.
1 will be test.com,
2nd will be test.com/sh/shop.
Check this for details : https://devdocs.magento.com/guides/v2.3/config-guide/multi-site/ms_websites.html
Base urls of both sites will be different, so this will not cause css issue
This is my site link:
www.englishact.com
This is the sitemap current position:
Google is showing no error in sitemap or any other pages. But indexed pages are 0 for about 3 months. I also have uploaded new sitemaps which are acting same way with no index.
NB:
I am using 1and1 paid hosting package. Also, google has accepted adsence for this site. Now what can I do? Any suggestions?
Your website is index on Google, i just searched for site: www.englishact.com and got many results.
Check if the links in your XML sitemap are valid or redirecting to another URL.
Also you have to solve the duplication in the URLs, you can access your website with WWW and without it, also you have two URLs for the homepage http://englishact.com/ and http://www.englishact.com/index.php
After fixing these errors your website should be healthy and Google will understand the structure of it.
I'm trying to redirect the forum link on my website
example.com/forum to example.net/forum
Most code is either for a page or an entire site. I'm trying to figure out how to do it specifically for ONE directory
You want to instruct the browsers that your forum has moved. This is a "301 redirect".
Supposing your server is Apache, the best is to use an .htaccess file :
http://kb.mediatemple.net/questions/242/How+do+I+redirect+my+site+using+a+.htaccess+file%3F
Here is a list of other methods to do the same :
http://www.webconfs.com/how-to-redirect-a-webpage.php
I own some webspace which is registered with a University. Google has unfortunately found my CV (resume) on the site, but has mis-indexed it as a scholarly publication, which is screwing up things like citation counts on Google Scholar. I tried to upload a robots.txt into my local subdirectory. The problem is that google ignores this file, and instead uses the rules listed for the school domain.
That is, the url looks like
www.someschool.edu/~myusername/mycv.pdf
I have uploaded a robots.txt, which can be found here
www.someschool.edu/~myusername/robots.txt
And Google is ignoring it and instead using the robots.txt for the school's domain
www.someschool.edu/robots.txt
How can I make Googlebot ignore my CV?
Sadly, robots.txt is defined to be whatever you get when you GET /robots.txt, so you can't use it for your subdirectory.
What you can do is use the X-Robots-Tag HTTP header, if you can use custom .htaccess files. Here's Google's documentation on X-Robots-Tag.
I have a page on my DotNetNuke site and I would like to set up a redirect and was wondering the best way to do it. Here is the problem:
I have a page on the site: mydomain.com/dashbaord.aspx. I would like users to be able to type mydomain.com/dashboard OR mydomain.com/Dashboard and it will redirect them to the /dashboard.aspx page.
I have IIS6, so I set up wildcard mapping, and it seemed to work for /dashboard, but not /Dashboard. Also, I am looking for it to literally redirect you so that /dashbaord.aspx shows up in the address bar. In addition, the wildcard mapping broke some other links on the site, so I was looking for an alternative method to accomplish this. Is there a way that I can set this up through IIS? Or any other way?
Thanks in advance for the help.
In IIS, create a virtual directory by right clicking on Sites, and then call it Dashboard. Then set that to redirect to a specific URL, in your case, http://mydomain.com/dashboard.aspx.