Welcome Guest, Not a member yet? Register   Sign In
wordpress url / CI uri
#1

[eluser]AlexC33[/eluser]
Hello everyone Smile

I'm new to CI, and new to WP also. I just got involved in a large project that make extensive use of CI (in fact, all the project use CI... Except the WP part), with a postgresql DB.

I need to make WP work inside the site in CI. I need in particuliar that the url of WP are not touched / interpreted by CI. Is there a magic way (which I don't know) to do this? Or do I have to ask the managers here to drop WP (it's a sweet dream, but I don't think it's a realistic one)?

thanks for your help Smile

PS: I know it has already been asked here CodeIgniter with Wordpress ? , but the thread is pretty old, and has no answers...
#2

[eluser]Derek Allard[/eluser]
The easiest way to do this would be to run the blog in a subdomian, like
http://codeignitersite.com -> CI part
http://blog.codeignitersite.com -> WP part.

<edit>OH, and welcome to CI!</edit>
#3

[eluser]AlexC33[/eluser]
Hi Derek Smile

thanks for your response, it was exactly what I thought!

Alas, they don't like it simple, and want something like http://codeigniter.com/blog1/params_of_WP and http://codeigniter.com/blog2/params_of_WP . Yes, the site will have two differents blogs! Is it still something feasible, or should I tell them no (and at the same time switch to EE? Wink

Thanks Smile
#4

[eluser]Michael Wales[/eluser]
Upload installation of WP to domain.com/blog1/
Upload installation of WP to domain.com/blog2/

Make sure you filter out these two sub-directories within the RewriteCond of your .htaccess file found at domain.com.

Code:
RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt|blog1|blog2)
RewriteRule ^(.*)$ /index.php/$1 [L]
#5

[eluser]sergitin[/eluser]
sorry my ignorance, but
what is WP and EE???
#6

[eluser]AlexC33[/eluser]
@Sergitin:

WP = WordPress (blogging software in PHP)
EE = Expression Engine (blogging software in PHP)

EE was done by the guys at EllisLab Wink




Theme © iAndrew 2016 - Forum software by © MyBB