Lowercase Rewrite in web.config. Strange behavior.
-
So I am trying to implement a lower case rule in my rewrite section and I am using the same snippet below that can be found all over the web.
The lower casing of my url works fine but it adds my domain name into the URL for reasons I can't explain. so this www.SomeSite.com/Upper.aspx become www.somesite.com/somesite/upper.aspx
I removed all other rewrite rules but this one and still it happens. Has anyone seen this?
My server is IIS 7
<match url="[A-Z]" ignorecase="false"></match>
<action type="Redirect" url="{ToLower:{URL}}"></action>
-
Hi Greg, great to hear that it's working ok and was a cache issue. Thanks for the update!
-
Hi James,
I am not sure why but it seems that my problem was cache related... I went to work and saw that my urls were rewriting just fine. Sorry I didn't get back to this thread for so long.
Regards,
Greg
-
Hi Greg,
You may need to be more specific in your query, e.g.
<match url=".[A-Z]." ignoreCase="false" />
Instead of:
<match url="[A-Z]" ignorecase="false"></match>
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
-
Panda and Large Web Presence
I'm experiencing some recent significant drops in rankings across the board for a client of mine and I suspect that it's probably related to Panda. Their internet presence features completely unique, useful, well written content by certified industry experts. Further, all content is of proper length and again serves a core purpose, providing helpful information to their viewers. Where I think things potentially go wrong is that they have around 20 micro sites in operation, including multiple web 2.0 blogs. There are also multiple sites in operation that target more specific areas of the same city. Again all of the content is unique, but they all feature content that's of the same industry and broad topic. Despite everything being 100% unique, I fear it's too excessive. Anyone know if Panda may target this type of approach even if the quality and uniqueness is appropriate?
Technical SEO | | BrandishJay0 -
Is it good practice to still pay for Best of the Web Directory (BOTW) and other similar one's you have to pay for?
I know that paid for links are hit by Google, but in the past these directories were okay. What about now? Thank you.
Technical SEO | | RoxBrock0 -
Google rankings strange behaviour - our site can only be found when searching repeatedly
Hello, We are experiencing something very odd at the moment I hope somebody could shed some light on this. The rankings of our site dropped from page 2 to page 15 approx. 9 months ago. At first we thought we had been penalised and filed a consideration request. Google got back to us saying that there was no manual actions applied to our site. We have been working very hard to try to get the ranking up again and it seems to be improving. Now, according to several serps monitoring services, we are on page 2/3 again for the term "holiday lettings". However, the really strange thing is that when we search for this term on Google UK, our site is nowhere to be found. If you then right away hit the search button again searching for the same term, then voila! our website is on www.alphaholidaylettings.com page 2 / 3! We tried this on many different computers at different locations (private and public computers), making sure we have logged out from Google Accounts (so that customised search results are not returned). We even tried the computers at various retail outlets including different Apple stores. The results are the same. Essentially, we are never found when someone search for us for the first time, our site only shows up if you search for the same term for the second or third time. We just could not understand why this is happening. Somebody told me it could be due to "Google dance" when indices on different servers are being updated, but this has now been going on for nearly 3 months. Has anyone experienced similar situations or have any advice? Many thanks!
Technical SEO | | forgottenlife0 -
Changing Web Hosting
We're about to change web hosting providers and I'm wondering whether there's an "optimal" way to do this without losing any SEO value. Is it as simple as changing hosts without SEO in mind - point the domain to the new host?
Technical SEO | | b40040400 -
Can you recommend a Web Developer who specializes in SEO?
We are an e-commerce site, http://www.ccisolutions.com running on an obscure Web store coded for us by a small company called Assist, located in Utah. We believe we have numerous problems with our code that are negatively impacting our SEO. One such problem, the current meta refresh on our homepage, is in the process of being fixed (Thanks to Jenn Lopez at SEOMoz for helping me convince management it was important enough to pay the $ for the fix!). However, I believe there could be numerous other issues. I am the SEO strategist, but I am not a coder beyond basic HTML and CSS. Can anyone recommend a highly qualified Web developer who's strong in SEO that we might hire to do an audit of our code, including recommendations on how to fix anything that might be discovered as a problem?
Technical SEO | | danatanseo0 -
Web config redirects not working where a trailing slash is involved
I'm having real trouble with getting working redirects in place to use on a site we're re-launching with a modified url structure. Old URL: http://www.example.com/example_folder/ New URL: http://www.example.com/example-of-new-folder/ Now, where the old URL's have a trailing slash the web.config simply will not accept it. It says the URL can start with a slash, but not end with a slash. However, many of my URL's do end with a slash so I need a workaround. These are the rules I'm putting in place: <location path="example_folder/"></location> Thanks
Technical SEO | | AndrewAkesson0 -
Strange rank behavior
Hi, I was ranked 16th (second page) on google italy for the keyword "realizzazione siti internet" (high and competitive serach volume) on an internel landing page: http://www.spotview.it/soluzioni-web-complete/realizzazione-siti-internet.html and everything went fine, that was my strategy planed for placement of selected keyword.The same page was ranked also for more relating keyworks just few position far from the main keyword. Now starts the strange behavior, suddenly on the end of september google.it decides to switch the landing page to the home page of the site! (absolutely not optimized for "realizzazione siti internet") and the for the others releated keyword the url disappear completely from the serp. Checking back into my link building database I found that some guys of my staff inserted wrong new links with the exact keyword "realizzazione siti internet" pointing to the home! not so good! those wrong links are about 10 with exact keyword and another 10 with releated keyword. So I decided to continue inserting links pointing to the right landing page http://www.spotview.it/soluzioni-web-complete/realizzazione-siti-internet.html to balance and to let google switch back to exact url. moreover I also tried to remove some wrong link with a little rate of succes 😞 Could somebody please tell me why now at about 45 day past the "landing switch error" the problem is not solved? somebody has suggestion or strategies to apply? thanks in advance
Technical SEO | | Filolari1 -
URL Rewrite
We are trying to convince a client to do a massive rewrite from all URL's looking like this: "www.company.com/category/categoryId=82374" to something like "www.company.com/womens/jackets/rain" How would you describe the importance and impact of doing URL rewrites to an ecommerce site? What evidence/research can we share with them to convince them it is worth the time and effort to do?
Technical SEO | | Hakkasan0