Jump to content

Archived

This topic is now archived and is closed to further replies.

hypman

Help with changing www.site to non www

Recommended Posts

hypman

Hi guys

 

Sorry if this is the worng forum but im trying to follow some advice i had about getting rid of some crappy links i have pointing to my site. Ive been told it will help if i change my site from http://www.mysite to http://mysite

 

So i tried to add this line to my functions.php  remove_action('template_redirect', 'redirect_canonical');

 

i just tried this and now the site wont load at all, and i cant load the editor to remove the text??

 

this is the error message im getting remove_action('template_redirect', 'redirect_canonical');
Warning: Cannot modify header information - headers already sent by (output started at /home/stopsmok/public_html/www.hypnosis-to-stop-smoking.co.uk/wp-content/themes/iblogpro/functions.php:18) in /home/stopsmok/public_html/www.hypnosis-to-stop-smoking.co.uk/wp-includes/pluggable.php on line 896

 

i appreciate the help

Share this post


Link to post
Share on other sites
hypman

OK, so now i need to alter this through FTP right? does anyone know whatfilename i need to look under?

 

thanks

Share this post


Link to post
Share on other sites
hypman

hi Danny

 

Thanks for that but i know if i just change the settings in dashboard that effectively acts as a redirect which is what im trying to avoid if poss, the 2nd thing is i cant access the dashboard at all so it looks like ill have to reinstall : /

 

thanks

Share this post


Link to post
Share on other sites
Danny

You shouldn't need to reinstall, simply remove the custom code you have added to your functions.php file. In regards to your www site url issue, I think the best course of action is to ask this question on the Wordpress support forums.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites

×