How can I create a redirection on IIS?
-
Hi,
I want to know how to create a server side 301 redirection on IIS7.
I found on google the below details;
IIS Redirect
- In internet services manager, right click on the file or folder you wish to redirect
- Select the radio titled "a redirection to a URL".
- Enter the redirection page
- Check "The exact url entered above" and the "A permanent redirection for this resource"
- Click on 'Apply'
But couldn't find anything like that. Can anyone help me out.
thanks & regards
-
Hi,
Thanks so much Zachary. In fact I am purely from linux background. This is the first time I am dealing with IIS. let me check albiet short and IIS Manager.
Apart from web config file, I read about global.asax file. I think these files are are used for redirecting a whole site, right?. But in my case I need to redirect some of my old html pages to aspx pages.
best!
-
Hi John!
Are you using IIS Manager to administrate your server? If not, that's probably why the details you listed would not apply.
If you come from a Linux background and just want to modify a file, like you would with the .htacess file, you will be editing the web config file. Microsoft has a knowledge base article (albeit short) on this at the following:
Let me know if you have questions. I would be happy to help further.
Cheers!
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
How Can I Redirect an Old Domain to Our New Domain in .htaccess?
There is an old version of http://chesapeakeregional.com still floating around the web here: http://www.dev3.com.php53-24.dfw1-2.websitetestlink.com/component/content/category/20-our-services. Various iterations of this domain pop up when I do certain site:searches and for some queries as well (such as "Diagnostic Center of Chesapeake"). About 3 months ago the websitetestlink site had files and a fully functional navigation but now it mostly returns 404 or 500 errors. I'd like to redirect the site to our newer site, but don't believe I can do that in chesapeakeregional.com's .htaccess file. Is that so and would I need access to the websitetestlink .htaccess to forward the domain? Note* I (nor anyone else in our organization) has the login for the old site. The new site went live about 9 months before I arrived at the organization and I've been slowly putting the pieces together since arriving.
Intermediate & Advanced SEO | | smpomoryCRH0 -
Preserve domain on 301 redirect?
We have a domain solely used for print advertising that does a 301 redirect to a landing page (a department home page) on our "real" domain that is indexed on Google. Example: www.bmwrepairs.com redirects to www.repairshop.com/bmwrepairs. Is there a way to do a 301 redirect so that when they get redirected, the URL in the browser address bar remains www.bmwrepairs.com?
Intermediate & Advanced SEO | | Jazee1 -
Redirect wordpress.com and internal link ?
Hi Moz Fans, First of all, I need to say thanks to all of answer to previous post. And today i also have the another question that similar to that post. Because our website using Wordpress.org as our CMS for blog post then easier to redirect by point to new site, According to setting site URL ? However in our each blog articles also have anchor text as internal link that link to another blog post, Which mean those link will be automatic redirect to new URL. So once Google bot re-crawl our website when we tell the Google by webmaster tools and the redirection we using 301. What will be happen when Google Bot crawl those link again We need to changes those link as well Keep same with redirection. Nothing happen
Intermediate & Advanced SEO | | ASKHANUMANTHAILAND0 -
Random post plugin creates 302 redirects. What should I do?
Just started work on a great MMA news site. In their footer, they have a plugin for random posts, which creates URL strings with '?random=1' on the end and then 302 redirects to a random article on the site. I know SEO-friendly protocol for redirects is to use 301 and not any of the other 300's. However, I don't really see the need to do 301s for these because of the fact that they are random! That said, I also don't want to leave 1000s of errors that can hinder the 'crawlability' (don't judge me - that's a word :)) of my client's site. My thought right now is to noindex the urls with the '?random=1' in the string, so the spider doesn't worry about crawling those links. Not sure if that is proper code, but it seems that would be quick and effective. Is there a better way to attack this? If you know, please share with me! WP publishers who use random post plugins: have you experienced this? How did you fix it within the friendly confines of Wordpress?
Intermediate & Advanced SEO | | Netrepid0 -
Language Detection redirect: 301 or 302?
We have a site offering a voip app in 4 languages. Users are currently 302 redirected from the root page to /language subpages, depending on their browser language. Discussions about the sense of this aside: Is it correct to use a 302 redirect here or should users be 301 redirected to their respective languages? I don't find any guideline on this whatsoever...
Intermediate & Advanced SEO | | zeepartner1 -
301 redirect with /? in URL
For a Wordpress site that has the ending / in the URL with a ? after it... how can you do a 301 redirect to strip off anything after the / For example how to take this URL domain.com/article-name/?utm_source=feedburner and 301 to this URL domain.com/article-name/ Thank you for the help
Intermediate & Advanced SEO | | COEDMediaGroup0 -
Can videos be considered duplicate content?
I have a page that ranks 5 and to get a rich snippet I'm thinking of adding a relevant video to the page. Thing is, the video is already on another page which ranks for this keyword... but only at position 20. As it happens the page the video is on is the more important page for other keywords, so I won't remove it. Will having the same video on two pages be considered a duplicate?
Intermediate & Advanced SEO | | Brocberry0 -
Can I compete with these results? (Brand in Serp)
Hey, One quick question. Lets say im fighting for keyword "british airways" and i want to appear straight after first result in number 2 position. Is it possible to compete with stroked results. (See image attached) Thanks Stxct.png
Intermediate & Advanced SEO | | Marteen0