mcmuney Posted April 29, 2010 Share Posted April 29, 2010 How can I modify the code below to redirect any page or folder of "domain.com/*" to redirect to "www.domain.com/* (it should redirect domain.com/folder/ or domain.com/folder/index.php): RewriteCond %{http_host} !^www.newamericandimensions.com$ [nc] RewriteRule ^(.*)$ http://www.newamericandimensions.com/$1 [r=301,nc,L] Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/200232-htaccess-redirect-help/ Share on other sites More sharing options...
cags Posted April 30, 2010 Share Posted April 30, 2010 Can you give exact example of what you want to input and what you want to see, because as far as I can tell the code you have there does what your asking for. Redirect any page that isn't in the www subdomain to the www.subdomain. Quote Link to comment https://forums.phpfreaks.com/topic/200232-htaccess-redirect-help/#findComment-1050919 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.