Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 6th Nov 2014, 04:47 AM   #1
ahmad balavipour
 
Join Date: 2012
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default
redirect www to non www in subfolder
Share on: 
fb share twitter share gplus share more share

I have joomla installed on root folder and another joomla installed on subfolder. I want to redirect www to non in subfolder by this code in blog htaccess:

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


it worked for root redirect but when i want browse internal page it redirect the page to home page. What is problem?

joomir is offline  
Closed Thread


Bookmarks

Tags
redirect, subfolder, www


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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 03:20 PM.