Welcome Guest, Not a member yet? Register   Sign In
Run CI under Wordpress root directory
#4

Hi Rufnex and sv3tli0,

here are the .htaccess for both. 

WP: this is in the main root directory (something, /var/www) 

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

# END WordPress


For CI: is on sub-folder (like: /var/www/ciproject/public_html)

<IfModule mod_rewrite.c>

  Options +FollowSymLinks
  RewriteEngine on

  # Send request via index.php
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>

and in config.php i set something like, $config['base_url'] = 'http://www.wp-project.com/ciproject/';

By the way, i'm not really familiar with .htaccess.

hope you guys can further help. 

Thanks Again
Reply


Messages In This Thread
RE: Run CI under Wordpress root directory - by vrsotto - 11-25-2014, 08:39 AM



Theme © iAndrew 2016 - Forum software by © MyBB