Site address and post name permalinks (.htaccess?)
-
Hi,
I need to change site adress to different domain than server with WP instalation is. I have a wordpress site on server “subdomain.myserver.com”. Than I have the domain “www.site.com” redirected to my wordpress site. When I change site address in “Settings>General” to “www.site.com” I get these errors:
Warning: is_writable() [function.is-writable]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/var/www/web28/html/:/var/www/web28/phptmp/:/var/www/web28/files/:/var/www/web28/atd/) in /var/www/web28/html/www/wp-admin/includes/misc.php on line 133 Warning: Cannot modify header information - headers already sent by (output started at /var/www/web28/html/www/wp-admin/includes/misc.php:133) in /var/www/web28/html/www/wp-includes/pluggable.php on line 881
However it works and I have a access to my site through this domain. But I need post name permalinks too. And that’s problem. When I set permalinks to post name format I get errors:
Warning: is_writable() [function.is-writable]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/var/www/web28/html/:/var/www/web28/phptmp/:/var/www/web28/files/:/var/www/web28/atd/) in /var/www/web28/html/www/wp-admin/options-permalink.php on line 132 Warning: is_writable() [function.is-writable]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/var/www/web28/html/:/var/www/web28/phptmp/:/var/www/web28/files/:/var/www/web28/atd/) in /var/www/web28/html/www/wp-admin/includes/misc.php on line 133
and wordpress say that I should update my .htaccess now. After this my site doesn’t work (404) even after updating .htaccess manually. Strange is that when I set post name permalinks without changing site address (so site address is subdomain.myserver.com) wordpress can create or update .htaccess and everything works.
Maybe there is some problem with .htaccess after changing site address but I’m not proffesional developer and I don’t understand it. Can anyone help?
Thanks! And sorry for my english.
- The topic ‘Site address and post name permalinks (.htaccess?)’ is closed to new replies.