Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
Photo

Cookies


  • Please log in to reply

#1
Immortalarena

Immortalarena

    Member

  • Member
  • PipPipPip
  • 211 posts
This is a new issue I am having. I have had my cookies working for a while now and have a few problems I need help working out. If it was just http://mysite.net, the setting the domain to .mysite.net would allow users to use both mysite.net and www.mysite.net

The problem I am having is that I need to set the cookie to also work on the site alias of mysite.com and www.mysite.com.

Is there a method that will allow this to work? Is there a better way than using cookies?

Help or comments will be greatly appreciated. Thanks,

-Matt :)
  • 0

Advertisements


#2
Major Payne

Major Payne

    Retired Staff

  • Retired Staff
  • 5,307 posts
Might be of interest...

.htaccess Mod-Rewrite for WWW Domain Name Prefix


5 useful url rewriting examples using .htaccess (#3)
  • 0

#3
Immortalarena

Immortalarena

    Member

  • Topic Starter
  • Member
  • PipPipPip
  • 211 posts
Forgot to mention the entire site is written in ASP on a windows Server. I don't think .htaccess will work on a windows server will it?
  • 0

#4
Major Payne

Major Payne

    Retired Staff

  • Retired Staff
  • 5,307 posts
Now there you have me. :) Not at all familiar with Windows server. Might see if this helps are leads you in the right direction...

Setting Up the Microsoft DNS Server

If you don't think that will help, let me know and I'll ask for someone else to look at your post.
  • 0

#5
Immortalarena

Immortalarena

    Member

  • Topic Starter
  • Member
  • PipPipPip
  • 211 posts
Unfortunately this is hosted for me so I don't have that access. I think I may just have to re-direct all .com users to the .net site.
  • 0

#6
Major Payne

Major Payne

    Retired Staff

  • Retired Staff
  • 5,307 posts
Might look at:

301 Redirects:

htaccess 301 redirect tutorial : http://www.tamingthe...01-redirect.htm
How to Do a 301 Redirect: http://www.internetb...1-redirect.html
How to redirect a web page, the smart way: http://www.stevenhar...rect-web-pages/
Redirects and SEO: http://www.allthings...irects-and-seo/

Any web page can be redirect with the refresh meta tag. It could be set to zero time delay and point to wherever you want. Would that work for you a lot better?
  • 0

#7
Immortalarena

Immortalarena

    Member

  • Topic Starter
  • Member
  • PipPipPip
  • 211 posts
it might. I know ASP has the ability to redirect without the meta tag: Response.redirect("http://mysite.net")

The problem is that both sites are on the same host. So I'm not sure how this would work. The .com is an alias of the .net site. So it's not like they get a different site when they visit the .com site. The 301 Permanent redirect would appear to be for a move of Server A to Server B as well as a change in the site. I will keep looking into this. Thanks again for the help so far.
  • 0

#8
Major Payne

Major Payne

    Retired Staff

  • Retired Staff
  • 5,307 posts
OK. Sorry I don't have enough experience with ASP. The meta tag will send you to where you want to go, but not sure if you can use it:
<meta http-equiv="refresh" content="0;url=http://www.mysite.net/">

  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP