Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-10-2010, 02:27 AM   PM User | #1
twobyfour
Regular Coder

 
Join Date: May 2010
Posts: 140
Thanks: 7
Thanked 0 Times in 0 Posts
twobyfour has a little shameless behaviour in the past
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?
twobyfour is offline   Reply With Quote
Old 07-10-2010, 05:27 AM   PM User | #2
twobyfour
Regular Coder

 
Join Date: May 2010
Posts: 140
Thanks: 7
Thanked 0 Times in 0 Posts
twobyfour has a little shameless behaviour in the past
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]
twobyfour is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 07:43 PM.


Advertisement
Log in to turn off these ads.