Below is my baseurl configuration: $config['baseurl'] = 'http://www.praymylife.com'; All of the page functions work when the user is using the "www." extension. But if the user visits the page with out the "www." extensions the page functions do not work. Please help! Thanks Walter
i do not fully get it but anyway, u may try to do it with .htaccess RewriteEngine On RewriteCond %{HTTP_HOST} !^www\. RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L] Code (markup):
yho_o Thank you for your response... Is there any other way to fix issue??? Is there a line of code that I can add to my config page??? My understanding is that the .htaccess file is for when you have limited access to the server... Thanks Again
.htaccess has tons of uses, but anyway here you're php code put it in your config <?php if (substr($_SERVER['HTTP_HOST'], 0, 4) !== 'www.') { header('Location: http://www.praymylife.com'); } ?> PHP:
That's what I would use. .htaccess definitely rocks and does a lot of things for you if you know how to use it.
yho_o You are the man!!! I ended up using the .htaccess code you provided and it worked!!! I misunderstood the uses of that file... But then again that is why Im the newb and you're the guru... Thanks Again... Thanks, yafi_hostinizer