Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Drupal and wordpress on the same site

I have a drupal installation in the root directly of my domain with clean urls enabled. I also have a sub directory with wordpress installed. /blog/ I also have a sub directory with php scripts in it /utilities/

When I type in "http://www.domain.com/blog/a-post/" I get a 404 error from Drupal telling me that the page does not exist. same goes with "http://www.domain.com/utilities/pig/"

I know this has something to do with the ".htaccess" file. That was created when I turned on "clean urls" in Drupal.

I'm looking for information on how to set up the .htaccess file or a code snippet that i could use to tell Drupal to ignore these two directories.

like image 997
Steven Smethurst Avatar asked Apr 27 '10 19:04

Steven Smethurst


People also ask

Can you use WordPress with Drupal?

You can build complex functionality in both Drupal and WordPress without ever needing to write a line of code. WordPress plugins make it easy to add features quickly. Drupal goes out of it's way to make sure site administrators can combine functionality in any way they want.

When should I use Drupal vs WordPress?

The main difference between Drupal and WordPress is that Drupal is focused on developers with more customization features, while WordPress is more beginner-friendly. Below we'll see in more detail how WordPress and Drupal stack up against each other.

What can Drupal do that WordPress can t?

Out of the box, Drupal's user permissions are also more advanced than WordPress. With Drupal, you can have site admins, content editors, individualized access to private content, and more. Drupal core also allows you to create and define your own user roles and associated permissions for each role.

Which is more popular Drupal or WordPress?

WordPress is the world's most popular content management system. Originally launched as a blogging platform back in 2003, WordPress now powers 43.3% of all websites and controls a massive 65.1% of the known content management system market.


1 Answers

If you add

RewriteCond %{REQUEST_URI} !^/blog/.*$
RewriteCond %{REQUEST_URI} !^/utilities/.*$

below

RewriteCond %{REQUEST_URI} !=/favicon.ico

You should be fine.

like image 157
googletorp Avatar answered Oct 18 '22 06:10

googletorp