Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    May 2010
    Posts
    146
    Thanks
    8
    Thanked 0 Times in 0 Posts

    htaccess session pass subdomain issue

    Code:
    RewriteCond %{HTTP_HOST} ^domain\.com
    RewriteRule (.*) http://www.domain.com/$1 [R=301,L]
    I have this code which passes sessions to my subdomain. It works fine and doing its job but it doest allow my wordpress blog to display (Internet Explorer cannot display the webpage) and Firefox doesnt work either. The wordpress install is in a subdirectory on the server. Can this be resolved?

  • #2
    Regular Coder
    Join Date
    May 2010
    Posts
    146
    Thanks
    8
    Thanked 0 Times in 0 Posts
    i fixed itby adding another RewriteCond.


    Code:
    RewriteCond %{HTTP_HOST} ^domain\.com
    RewriteCond %{HTTP_HOST} ^domain\blog\.com
    RewriteRule (.*) http://www.domain.com/$1 [R=301,L]


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •