Installation Of Wordpress In Subdirectory - URGENT

#1
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
 
#3
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 domain.com redirects to domain.com/blog , 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.
 

Cold-Egg

Administrator
#4
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 example.com/blog 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.

Best,
Eric
 
Top