Installation Of Wordpress In Subdirectory - URGENT

Hi , i am using litespeed image from aws ec2 instance.

after logging in via ssh and generating https certificate.

i entered url , it directly installed wordpress in my home directory .

although i wanted to install it in blog directory.

i followed bellow step :
edite .htacess file
RewriteBase /blog
RewriteRule .* index.php [F]

then opened the virtual host - clicked on /var/www/html , went to rewrite and entered
RewriteRule /.* /blog/index.php [F]

then gracefull restart . but got 404 error.

Can Anybody Help me by telling step by ste guide how to install wordpress in subdirectory on openliteserver on aws.

OpenLiteSpeed 1.6.13
but how to install wordpress using command line only , cause when i gave sudo command , some permission messed up.

also how to configure so that if someone visit redirects to , what .htacces file configuration i have to put in root directory & what i htacces content should i put in /blog directory.

also how to configure the virtual host ? so they point to /blog directory.


Hi @ishangarg ,

1. Launch a new openlitespeed wordpress server.
2. Create a blog folder and move all wordpress files to the blog folder
3. Change the right owner to the blog, e.g. chown -R www-data:www-data blog
3. visit and finish the wordpress setup
4. put a rewrite rule under /var/www/html either .htaccess file or web admin rewrite tab
5. Restart openlitespeed web server.

Let us know if it helps.