StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-23-2012, 03:26 AM
bolo's Avatar
bolo bolo is offline
Registered User
Genesis Member
Pro Plus Member
 
Join Date: Dec 2011
Posts: 11
Default 301 non-www to www in subdirectory

Hi there,

Can't quite pinpoint what I am doing wrong.

I hav a site with htaccess in root and wordpress hosted in /newsite

the code for the root htaccess file is:


# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /newsite/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /newsite/index.php [L]
</IfModule>

the code for the subdirectory htaccess is

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /newsite/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /newsite/index.php [L]
</IfModule>

# END WordPress


I need to 301 redirect non-www to www

can someone please advise on the code I need to use to do this?

I have searched high and low and tested numerous options and all come back with either an internal server error or still no www.

Thanks in advance...
 

Thread Tools
Display Modes

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
WordPress in Subdirectory gdpmumin General Discussion 4 04-28-2010 08:05 PM
Wordpress in subdirectory pyramatboy General Discussion 1 11-12-2009 02:32 AM


All times are GMT -5. The time now is 10:00 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.