htacces problem, and _basedir restriction in effect
Hello!
I have manually installed wordpress on alias domain regal-tech.sk
After install some issues ocured.
*_basedir restriction in effect. File(/) is not within the allowed path(s): (/data/web/virtuals/259032/virtual) in /data/web/virtuals/259032/virtual/www/domains/regal-tech.sk/wp-admin/options-permalink.php on line 147
*_basedir restriction in effect. File(/) is not within the allowed path(s): (/data/web/virtuals/259032/virtual) in /data/web/virtuals/259032/virtual/www/domains/regal-tech.sk/wp-admin/includes/misc.php on line 266
*If your .htaccess
file was writable, we could do this automatically, but it isn’t so these are the mod_rewrite rules you should have in your .htaccess
file. Click in the field and press CTRL + a to select all.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
What can I do to repair this?
Thanks in advance
4 Answers
Hello again!
The problem is partially resolved.
Apparently, I have the wrong URL address on my WordPress site on a domain
regal-tech.sk
When I type this link into a browser, redirection leads to
„https://regal-tech.cz/domains/regal-tech.sk“
Instructions on wedos.cz are to make a change in WP setings>general
WordPress address (URL), and Site address (URL) from:
„https://regal-tech.cz/domains/regal-tech.sk“
to:
„https://regal-tech.sk“
When I doo so URL in the address bar looks OK, but then it looks like the browser ignores WordPress entirely, and displays pages just like text without styling, and with no media.
Also in this case the site is insecure (not recognizing SSL certificate)
I have .htaccess file in /www/domains/regal-tech.sk/
with following code inside
1
2
3
4
5
6
7
8
9
# BEGIN WordPress
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
#
END
WordPress
I have also tried with code from section
Aliases and incorrect URLs
but nothing helps.
Hello,
do you have .htaccess file in /www/domains/regal-tech.sk/ ? If not, you have to create it a write inside following code
# BEGIN WordPress RewriteEngine On RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] # END WordPress
Hello,
is the problem with URL happening on regal-tech.cz or regal-tech.sk? Do you have two separate wordpress instalations for both domains or do you want to use multiple domains for one instalation?
Just make sure you have correct URL set in wordpress administration or database for each installation – if that is the case. In case these are indeed two separate installations (placed in their respective folders in /www/domains – if one is sitting in /www, it is better to place it in domains) the problem might be in your /www/.htaccess file.
The .htaccess files in folders of your WP installations should better contain default WP rules only. In /www/.htaccess you should then have our default rules only.
The rules for redirecting all request to https can be placed inside wordpress .htaccess file in your wordpress installation folder. You can see the rules here.
You also need to add alias to the certificate and apply the changes for the SSL to work properly.
In case the problem still persist, please send us the paths to your wordpress installations and also content of all the .htaccess files.
One more thing.
How to create e-mail adress on the alias domain.
hosting and main domain is
regal-tech.cz
and alias domain is
regal-tech.sk
I want to create
office@regal-tech.sk