cs.punk Posted May 18, 2009 Share Posted May 18, 2009 I read that one should have a redirection service to direct all viewers to either www.example.com or example.com but not both. As SEO will see it as 'two sites' splitting your page ranking. But how does one go about doing this without having access to Apache? - As I am using a third party to host my site? Quote Link to comment https://forums.phpfreaks.com/topic/158596-no-www-to-redirect-to-www/ Share on other sites More sharing options...
Ken2k7 Posted May 18, 2009 Share Posted May 18, 2009 .htaccess mod_rewrite Try asking in the mod_rewrite forum. Though this question has been raised fairly often. Just Google it if you want. Quote Link to comment https://forums.phpfreaks.com/topic/158596-no-www-to-redirect-to-www/#findComment-836464 Share on other sites More sharing options...
Demonic Posted May 18, 2009 Share Posted May 18, 2009 http://leftblank.nl/how-to-redirect-www-to-no-www-or-vice-versa-on-your-website-274.html http://wordpress.org/extend/plugins/no-www/ Quote Link to comment https://forums.phpfreaks.com/topic/158596-no-www-to-redirect-to-www/#findComment-836470 Share on other sites More sharing options...
cs.punk Posted May 19, 2009 Author Share Posted May 19, 2009 But thats my point... I don't have access to the .htaccess apache file as my site is being hosted with a hosting company... Quote Link to comment https://forums.phpfreaks.com/topic/158596-no-www-to-redirect-to-www/#findComment-836968 Share on other sites More sharing options...
cs.punk Posted May 19, 2009 Author Share Posted May 19, 2009 Anyone? Quote Link to comment https://forums.phpfreaks.com/topic/158596-no-www-to-redirect-to-www/#findComment-837545 Share on other sites More sharing options...
Ken2k7 Posted May 19, 2009 Share Posted May 19, 2009 Create the file. Quote Link to comment https://forums.phpfreaks.com/topic/158596-no-www-to-redirect-to-www/#findComment-837548 Share on other sites More sharing options...
cs.punk Posted May 20, 2009 Author Share Posted May 20, 2009 Create the file?... How do I got about doing that? Quote Link to comment https://forums.phpfreaks.com/topic/158596-no-www-to-redirect-to-www/#findComment-837944 Share on other sites More sharing options...
jackpf Posted May 20, 2009 Share Posted May 20, 2009 Create a file called .htaccess duhh Quote Link to comment https://forums.phpfreaks.com/topic/158596-no-www-to-redirect-to-www/#findComment-837948 Share on other sites More sharing options...
cs.punk Posted May 21, 2009 Author Share Posted May 21, 2009 Is'nt it a configuration file of apaches?... Is'nt it that, they configured the file to there specification so that the client can't modify theres security rules and stuff which might make other clients in danger?... Just asking... Quote Link to comment https://forums.phpfreaks.com/topic/158596-no-www-to-redirect-to-www/#findComment-838761 Share on other sites More sharing options...
trq Posted May 21, 2009 Share Posted May 21, 2009 Yes. A .htaccess file is a php configuration file. However, .htaccess files only have control over the directory which they are placed within and all that directories siblings. They are indeed designed to give fine grained control over web accessible directories. Hence, they can be created and placed anywhere within your alocated space providing apache is configured to use them (which it most always is). Quote Link to comment https://forums.phpfreaks.com/topic/158596-no-www-to-redirect-to-www/#findComment-838838 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.