Error in /blog redirection – ubuntu default WP installation

Question

I have installed WP from the Ubuntu repositories (18.04) and the domain I got was something like http://snf-XXXXX.vm.okeanos.grnet.gr/blog (notice the blog at the end).

After some tries to perform a new domain redirect (e.g. www.example.com to redirect to http://www.example.com/blog I think I did something wrong and broke the /blog, meaning that http://www.example.com/blog redirects to http://snf-XXXXX.vm.okeanos.grnet.gr showing the Apache index.php. Nevertheless http://www.example.com/blog/wp-admin/index.html works just fine.

I checked the browser logs and the /blog page raised a 301 error, thus it was redirected to root.

My htaccess is the following:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /blog/
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]
</IfModule>

, which I think it is the default for the Ubuntu installation.

Also in wp-admin/ general options, both URLs are set to http://www.example.com/blog

Thanks in advance!

0
, , Manos Tsardoulias 11 months 2020-05-19T03:10:35-05:00 0 Answers 73 views 0

Leave an answer

Browse
Browse