vinkla / wordplate

A boilerplate for WordPress, built with Composer and designed with sensible defaults.
2.11k stars 155 forks source link

Guidelines for deploying on a server #206

Closed aurel-fcc closed 6 years ago

aurel-fcc commented 6 years ago

Hi, I created a wordpress site with wordplate and i would like to deploy it on my server in a subdirectory. Can you please help me by telling me what i need to do to make it work properly.

example url : - http://example.com/subdirectory/

I tried to create a .htaccess file to redirect to the public folder but it doesn't work.

Thanks in advance for your advice.

aurel-fcc commented 6 years ago

My website works since I added in .env file :

WP_URL=http://example.com/subdirectory/public/ WP_SITEURL=http://example.com/subdirectory/public/

but i can't access to the admin anymore...

vinkla commented 6 years ago

Check out the articlebelow about hosting Laravel in a sub directory. It should be a similar setup with WordPlate. Though, I don’t recommend doing this.

https://laravel-news.com/subfolder-install