ISAPI Redirect in httpd.ini doc
-
Hi folks,
Due to working on a site older than myself, I find myself in a position whereby I need to set up some redirects in the httpd.ini document. I had wrongly assumed this would be in the same way as I would in htaccess, but alas, no dice.
There's nothing special about what I'm trying to do, but I think the expressions are what are confusing me.
I'm trying to redirect this example page - http://www.example.com/subfolder/DisplayArticle.asp?ID=12345 to it's subfolder http://www.example.com/subfolder/.
Here's what I have:
[ISAPI_Rewrite]
Redirecting old article to new locations
RewriteRule ^/subfolder/DisplayArticle.asp?ID=12345 /subfolder/ [R=301,L]
Can someone please point me in the right direction?
Thanks
Matt
-
Thanks Shane. My syntax wasn't perfect, but after messing about with a few different ones, and closing with [RP], I managed to get it to work.
Many thanks!
-
It does not understand mod_rewrite R=301
[RP]
is the equilvalent
on the actual base syntax, I am not completely sure, but I believe it would stay the same
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
-
Selectively 301 redirects
Hi there: We are developing a pretty typical 301 redirection strategy. We basically are moving blog posts from a former sub-domain to the top level of our new designed site. We've pulled a site crawl of the old sub-domain and want to make sure we redirect any posts with a significant backlink profile to their current counterparts. Most other posts are just going to be redirected to the main 'front door' of our new blog. Is there a way to selectively redirect a certain number of posts and then 'globally' redirect everything else to a single URL? I would assume this would be a pretty common task, but can't find an easy way to do what we want to do.
Intermediate & Advanced SEO | | Daaveey0 -
How to find the redirects on website
I want to find the complete internal redirects on website. Just internally linked. How to find such?
Intermediate & Advanced SEO | | vtmoz0 -
Several 301 Redirects to Same Page
Hi, I have 3 Pages we won't use anymore in our website. Let's call them url A, url B and url C. To keep their SEO strength on our domain, I've though about redirecting all of them to url D. For what I understand, when 301 redirecting, about 85-90% of the link SEO juice is passed. Then, if I redirect 3 URLs to the same page... does url D receive all the link SEO juices for URLs added up? (approximately)
Intermediate & Advanced SEO | | viatrading1
e.g. future url D juice = 100% current url D juice + 85% url A juice + 85% url B juice + 85% url C juice Is this the best practice, or is there a better way? Cheers,0 -
How does Google treat chained 301 redirects?
I did the following two chained 301 redirects (A->B->C) Plural to Singular to New Domain A. http://domain1.com/filenames B. http://domain1.com/filename C. http://domain2.com/filename To new domain without www and then back to origining domain A. http://www.domain1.com/filename B. http://domain2.com/filename C. http://domain1.com/fifilename How much link juicy will be rediectetoto URL C in above two scenarios?
Intermediate & Advanced SEO | | Bull1350 -
New website from scratch and redirects or maintaining domain?
Hi friends, I have to face a big challenge. My client has an online store with about 250 products. The store is based on a web service provider whose CMS gives critical duplicate content issues. My client is considering to rethink the store from scratch and choose a CMS that offers more guarantees. I have two options: Starting the store from scratch with new domain and make redirects (whole domain or page to page?) Maintaining the domain, careful to keep the current structure of the URL, which is currently pretty bad I hope you could help me. Thanks in advance.
Intermediate & Advanced SEO | | sergio_redondo0 -
Questions about 301 Redirects
I have about 10 - 15 URLs that are redirecting to http://www.domainname.comwww.domainname.com/. (which is an invalid URL)The website is on a Joomla platform. Does anyone know how I can fix this? I can't figure out where the problem is coming from.
Intermediate & Advanced SEO | | JohnParker27920 -
Redirecting Canonical 301s and Magento Website
I have an issue with a client's website where it has 3700+ pages, but roughly half of them are duplicates. Thankfully, the only difference between the original and the duplictes is the "?print" at the end of each URL (I suppose this is Magento's way of making a printable page version of the same page. I don't know, I didn't build it.) My questions is, how can I get all the pages like this http://www.mycompany.com/blah.html?print to redirect to pages like this... http://www.mycompany.com/blah.html Also, do they NEED to be Canonical, or will a 301 redirect be sufficient. Also, after having done this, if anybody knows, is there a way I can turn that feature off in Magento, because we're expanding our product line, and I don't want to have to keep chasing after these "?print" pages after the fact.
Intermediate & Advanced SEO | | ClifThompson0 -
Move to a new domain - How to get the redirects right?
Hi, I hope that someone with good htaccess knowledge can help. I am planning on moving my site to a new domain. I understand that I should make 301 redirects using htaccess for every URL. This is a big site so it will be impossible to not forget some of the thousands existing URLs. Now to the question: How do I make all the URLs that is not specified in htaccess to redirect to my new root? Thanks!
Intermediate & Advanced SEO | | mrlolalot0