Mobile app version of vmapp.org
Login or Join
Samaraweera270

: Install WordPress in a subdirectory of MODX CMS For a client that need a re-design and a Plugin that exist only for WordPress I would like to install WordPress in a subdirectory of a website

@Samaraweera270

Posted in: #Modx #Wordpress

For a client that need a re-design and a Plugin that exist only for WordPress I would like to install WordPress in a subdirectory of a website that is built with MODX CMS.

Is this possible to install WordPress into a subdirectory while the website will run normally? Is for test / developing purpose.

Does this cause problems on the MODX installation?

Shall I do something before to start?

In the .htaccess file of the MODX installation I have this:

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q= [L,QSA]


Thanks

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Samaraweera270

2 Comments

Sorted by latest first Latest Oldest Best

 

@Hamaas447

The directory structure will be something like /home/user/www (or public_html) and that is where you likely will find modx.

Create a subdomain new.example.com and install wordpress in there. Your wordpress files should be in /home/user/www/new.example.com

You will be able to work on WordPress at new.example.com/wp-admin

When you are done, backup your modx site, delete everything (except the backup and the wordpress directory of course) and move all the files from /home/user/www/new.example.com to /home/user/www/

I find that sometimes it is necessary to go into the dashboard and simply resave permalinks to make it all work properly.

10% popularity Vote Up Vote Down


 

@Bryan171

I would like to install WordPress in a subdirectory of a website that is built with MODX CMS.


God, why in the world do you want to do so? Both sites are using htaccess to create SEF urls - you will be never able to correctly debug things if they gett wrong. And in my experience they will. htaccess is very fragil construction dependeing even from an order you write rules into it.

Don't create a source for a guaranteed additional headache. Create a directory on the same directory level as MODx, put Wordpress into it and you are on secure way.

And, for better management, put Wordpress into specially created database - not into the same, where MODx MySQL is placed.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme