Share/Save/Bookmark
Subscribe

Hot offers:

Your Ad Here
Jobs By Category:
.NET
Accounting/Bookkeeping
Ajax
Android
ASP
Audio Services
Banner Design
C/C++
CMS
Cold Fusion
Copywriting
CSS
Data Entry
Data Processing
Delphi
Drupal
E-Commerce
Electronics
Engineering
Excel
Flash
Graphic Design
Handheld
Handheld / PDA
iPhone
J2EE
Java
Javascript
Joomla
JSP
LDAP
Legal Advice
Link Building
LinkBuilding
Links
Linux
Logo Design
Magento
Market Research
Marketing
MS Access
MS SQL
MS Windows
mSQL
MSWindows
Multimedia
MySQL
Oracle
OsCommerce
Perl/CGI
Photography
Photoshop
PHP
PostgreSQL
Programming
Project Management
Proofreading
Python
Ruby/Ruby on Rails
Script Installation
Search Engine Optimization
Security
SEO
Social Networking
SQL
Support
System Admin.
System Administration
Telemarketing
Training
Translation
Video Services
Virtual Reality
Visual Basic
Web Promotion
Website Design
Website Security
Windows
Wireless
Wordpress
Writing
XHTML
XML


Your Ad Here

mod_rewrite problem - wordpress & cake php (Linux, Perl/CGI, PHP, System Admin.)

Your Ad Here


I have a small problem that is driving me nuts. I think it will be pretty simple for the right person to solve.

I am trying to make cakephp and wordpress (also php) live together on a single domain e.g. www.mysite.com

The proglem is I cannot get the right mod_rewrite rules to make it work nicely. they both also want to have the an index.php in the same directory which is also causing problems.

Here is my cake .htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?url=$ 1 [QSA,L]
</IfModule>

and here is wordpress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /blog/
AddDefaultCharset UTF-8
RewriteCond %http://www.mistersoft.org/freelancing/getafreelancer/2009/03/Linux-Perl-CGI-PHP-System-Admin-mod_rewrite-problem-wordpress-amp-cake-php-402883.html !^.*[^/]$
RewriteCond %http://www.mistersoft.org/freelancing/getafreelancer/2009/03/Linux-Perl-CGI-PHP-System-Admin-mod_rewrite-problem-wordpress-amp-cake-php-402883.html !^.*//.*$
RewriteCond %{REQUEST_METHOD} !=POST
RewriteCond %{QUERY_STRING} !.*=.*
RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress|wp-postpass_).*$
RewriteCond %{HTTP:Accept-Encoding} gzip
RewriteCond %{DOCUMENT_ROOT}/home/webapps/wordpress/wp-content/cache/supercache/%{HTTP_HOST}/blog/$ 1/index.html.gz -f
RewriteRule ^(.*) /home/webapps/wordpress/wp-content/cache/supercache/%{HTTP_HOST}/blog/$ 1/index.html.gz [L]

RewriteCond %http://www.mistersoft.org/freelancing/getafreelancer/2009/03/Linux-Perl-CGI-PHP-System-Admin-mod_rewrite-problem-wordpress-amp-cake-php-402883.html !^.*[^/]$
RewriteCond %http://www.mistersoft.org/freelancing/getafreelancer/2009/03/Linux-Perl-CGI-PHP-System-Admin-mod_rewrite-problem-wordpress-amp-cake-php-402883.html !^.*//.*$
RewriteCond %{REQUEST_METHOD} !=POST
RewriteCond %{QUERY_STRING} !.*=.*
RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress|wp-postpass_).*$
RewriteCond %{DOCUMENT_ROOT}/home/webapps/wordpress/wp-content/cache/supercache/%{HTTP_HOST}/blog/$ 1/index.html -f
RewriteRule ^(.*) /home/webapps/wordpress/wp-content/cache/supercache/%{HTTP_HOST}/blog/$ 1/index.html [L]
</IfModule>

# END WPSuperCache

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]
</IfModule>


there are only a small number of controllers that I need to get to the cake app e.g. keywords, users, reports, and they are distinct from the slugs used by wordpress.

Please can someone provide for me a working .htaccess file or explain what I need to do to fix.

thanks
Michael

and




Get custom programming done at GetAFreelancer.com!

Latest Related projects:

Title Bids Avg
Need some very basic help with Cake PHP by andrewtn 0 n/a
cake php coder   0 n/a
Auction website script small fixes needed (Cake PHP)   2 $ 175
Cake PHP dedicated developer required!   3 $ 1632
Advanced php trainers required   2 $ 30
Cake Php Project - Php Team 0 n/a
Cake PHP project   3 $ 133
Cake PHP Expert (20 Hours work) 0 n/a
Cake Php Design/flash 0 n/a
-1090 for nanolab 17 to do on IRS - cake php 0 n/a
Cake PHP Expert 0 n/a
Experienced Cake PHP programmer needed 9 $ 1272
Cake PHP Programmer - Short Term Projects 0 n/a
cake PHP quickee 0 n/a
php -expert in wordpress integration and cake php needed   0 n/a
Wordpress Custom Field Query 0 n/a
Wordpress Guru With Php Needed 0 n/a
Fix Wordpress Pagination.php problem 0 n/a
WordPress Plugin or PHP MySQL Site   1 $ 250
Wordpress developer with PhP skills for Cip   1 $ 30
wordpress plugin tweak (PHP Coding)   1 $ 100
wordpress.jquery and php integration expert needed   3 $ 967
Wordpress ipassion tell-a-friend plugin Help   7 $ 82
Backup 1 $ 100
Wordpress Guru W/php Skills 0 n/a
Wordpress Integrate With Php 0 n/a
PHP problem resolver for Auction website 0 n/a
Wordpress Template From Php 2 $ 90
Cake Php Website Finish 0 n/a
Wordpress, PSD and PHP Work   4 $ 173



Outsource your programming projects at ScriptLance.com today - Free signup

Post and Bid on projects! Join EUFreelance.com for free!




Currently viewed: "mod_rewrite problem - wordpress & cake php"
All for Freelancers version: "mod_rewrite problem - wordpress & cake php"