![]() |
|
||||||
|
|
Thread Tools | Display Modes |
|
#1
|
||||
|
||||
|
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 | |
|
|
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 |
© Copyright 2012 Copyblogger Media LLC · StudioPress™ is a trademark of Copyblogger Media LLC
Privacy Policy | Refund Policy | Terms of Service | Affiliate Program | Contact Us