DEV Community

Discussion on: Wordpress blog in a Rails app subfolder 🙈

Collapse
 
nuckfuggets profile image
Joren Rothman

You could try the following

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /your-subdirectory/
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /your-subdirectory/index.php [L]
</IfModule>

# END WordPress
Enter fullscreen mode Exit fullscreen mode
Collapse
 
leewynne profile image
Lee Wynne

Thanks, is this in a config file?

Collapse
 
nuckfuggets profile image
Joren Rothman

It is the .htaccess file inside of the root folder of WordPreas