NO WWW

Posted in: Newsmag
Post count: 133

Hey guys when i type my domain in to the adrress bar without www i ma getting following errors

Warning: require_once(includes/wp_booster/td_wp_booster_functions.php): failed to open stream: No such file or directory in /home/domeny/electropiknik.cz/web/subdomeny/www/wp-content/themes/Newsmag/functions.php on line 21

Fatal error: require_once(): Failed opening required ‘includes/wp_booster/td_wp_booster_functions.php’ (include_path=’.:/usr/share/php:/usr/share/pear’) in /home/domeny/electropiknik.cz/web/subdomeny/www/wp-content/themes/Newsmag/functions.php on line 21

can you please advice what need to be done?

Post count: 93

I think you should choose if you want www or no www and then redirect one version to the other.
In your case i think you are using the www version, you should redirect the non-www to the www version.

By adding some simple rule to your .htaccess file you can achieve this. There are many examples out there you can copy https://www.google.com/#q=redirect+non+www+to+www

Post count: 6535

Hi @jk

This may happen due to a rule from .htaccess file which force the url to have www in it. Check if among the rules from .htaccess you have one which may cause that. Also you can find som useful information here: https://mediatemple.net/community/products/dv/204643270/using-htaccess-rewrite-rules#6

I hope this helps.
Thanks!

Viewing 3 posts - 1 through 3 (of 3 total)
The forum ‘Newsmag’ is closed to new topics and replies.