Redirection using .htaccess

Discussion in 'Programming' started by Borduhh, May 26, 2010.

  1. #1
    Hello All,

    I currently have a site that leads to a Wordpress blog.

    By default if i type in
    the browser redirects me to
    . This is fine however I would like it to be the oppisite. If I go to
    I would like the url to stay the same not redirect.

    Any clue how to do this?

    Thanks,
    Nick
     
    Borduhh, May 26, 2010 IP
  2. flexdex

    flexdex Peon

    Messages:
    104
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Post your .htaccess file please
     
    flexdex, May 26, 2010 IP
  3. trevHCS

    trevHCS Peon

    Messages:
    40
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Have you got anything set-up in .htaccess to do redirection currently? Suspect this might be a server side setting as very often sub-domains are set to redirect. If you use Cpanel on the account then you might be able to turn this off under sub-domains there. But if it's server side and not something you've set then .htaccess probably won't be able to override it.

    What happens if you drop the www. bit and just go with blog.mysite.com ?

    Trev
     
    trevHCS, May 27, 2010 IP
  4. diveloper

    diveloper Active Member

    Messages:
    171
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #4
    first thing to make sure is - you do have a linux server? as thats what .htaccess runs on
     
    diveloper, Jun 1, 2010 IP