Webmaster Forum


Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
LinkBack Thread Tools Display Modes
Share |
  #1 (permalink)  
Old 03-30-2011, 01:07 PM
Junior Member
 
Join Date: 03-30-11
Posts: 9
iTrader: 0 / 0%
Web config redirecting...

So I'm having this issue where one of my search results is randomly coming up with a secure (https) link to the page. I haven't included a link to an https version of that page anywhere on my website, but it's not a page that should be, or needs to be securely browsed.

I'm trying to write a redirect rule to 301 it back down to http, so google changes their linking, and it fixes it... but every redirect rule I've tried doesn't seem to work. Google suggests using other methods (such as requireSSL on pages that use SSL, etc...) but that's not the way I want to resolve this.

We'll call it Pagea.aspx, and show you my local testing redirect which wasn't working.

Code:
<rule name="Redirect - HTTPS PageA" stopProcessing="true"> <match url="https://localhost/Pagea.aspx" ignoreCase="true" /> <action type="Redirect" url="http://localhost/Pagea.aspx" redirectType="Permanent" /> </rule>

Any help would be appreciated :]
 
Reply With Quote
  #2 (permalink)  
Old 03-30-2011, 04:08 PM
kos's Avatar
kos kos is offline
Coding Tiger
Latest Blog:
Happy New Year 2013

 
Join Date: 04-13-07
Location: .ro
Posts: 4,030
iTrader: 3 / 100%
I didn't use asp.net for quite a long time so I won't venture and try to respond to your issue, but I've found something that might help you: http://forums.iis.net/t/1174561.aspx

give that a read and see if it works.

Also, I've seen that you're using:
Code:
<rule name="Redirect - HTTPS PageA"
while they use:
Code:
<rule name="HTTP to HTTPS" enabled="true" stopProcessing="true">
...hth
 
Reply With Quote
  #3 (permalink)  
Old 04-01-2011, 07:15 AM
Junior Member
 
Join Date: 03-30-11
Posts: 9
iTrader: 0 / 0%
Thanks for the reply

Ended up not making any difference, it's enabled by default so the tag ends up not doing anything. Hm.
 
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Editing awstat config sash_007 Web Hosting Forum 11 12-01-2009 08:02 AM
$269 for the such config? Euthanas Dedicated Servers 1 11-18-2009 12:55 AM
Help with web.config file please!!! searchbliss Coding Forum 2 07-05-2009 02:17 PM
How do you find the price for such config? DennisBerc Dedicated Servers 6 04-04-2008 01:33 AM
PHP script config problem Optix Coding Forum 5 04-29-2007 05:18 AM


V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 12:58 PM.
Powered by vBulletin
Copyright © 2000-2013 Jelsoft Enterprises Limited.
Copyright © 2003 - 2013 Escalate Media LP




Search Engine Optimization by vBSEO 3.6.0 RC 2 ©2011, Crawlability, Inc.