Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 29 May 2009, 13:22
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Real name: Richie
.htaccess-redirecting a subforum question

Hey all, I hope someone can help me with this..

I just removed a sub domain from a site and I want to redirect the sub domain's path to the root directory....

This is what I came up with but it doesn't seem to be working. What am I missing?

RewriteCond %{HTTP_HOST} subdomain.mysite.com
RewriteCond %{REQUEST_URI} !mysite.com/
RewriteRule ^(.*)$ mysite.com/$1 [L]

Thank you guys so much,

Rich
__________________

Let us take care of your forum, seo, seo reports, maintenance, what ever you need.

Reply With Quote
  #2  
Old 29 May 2009, 13:52
UKBusinessLive UKBusinessLive is offline
 
Join Date: Sep 2008
Real name: Gerry
Originally Posted by RichieBoy67 View Post
Hey all, I hope someone can help me with this..

I just removed a sub domain from a site and I want to redirect the sub domain's path to the root directory....

This is what I came up with but it doesn't seem to be working. What am I missing?

RewriteCond %{HTTP_HOST} subdomain.mysite.com
RewriteCond %{REQUEST_URI} !mysite.com/
RewriteRule ^(.*)$ mysite.com/$1 [L]

Thank you guys so much,

Rich
Hi Rich In .htaccess files to use the rewrite condition you need to add above it


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Give that a go, but it it don't work, try the code i've done below instead, let me know mate


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #3  
Old 29 May 2009, 14:16
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Real name: Richie
Thanks,

yeah, I actually already have that.. sorry I didn't show it here but I will try everything else you changed..

Thank you so much Mr UK!!
__________________

Let us take care of your forum, seo, seo reports, maintenance, what ever you need.

Reply With Quote
  #4  
Old 29 May 2009, 14:18
UKBusinessLive UKBusinessLive is offline
 
Join Date: Sep 2008
Real name: Gerry
Originally Posted by RichieBoy67 View Post
Thanks,

yeah, I actually already have that.. sorry I didn't show it here but I will try everything else you changed..

Thank you so much Mr UK!!
No worries let me know if that works or not sometimes .htaccess codes can clash dependant what else you have in it.

Reply With Quote
  #5  
Old 30 May 2009, 00:23
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Real name: Richie
Thanks--It didn't work actually so I created a simple page with a meta redirect for now. I believe it probably is because of other items on the htaccess file. I will post them when I have a chance. I appreciate your advice and help.

Thanks
__________________

Let us take care of your forum, seo, seo reports, maintenance, what ever you need.

Reply With Quote
Reply



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

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


New To Site? Need Help?

All times are GMT. The time now is 09:23.

Layout Options | Width: Wide Color: