Share/Save/Bookmark
Subscribe

Hot offers:

Your Ad Here
Jobs By Category:
.NET
Academic Writing
Access DB
Accounting
Accounting/Bookkeeping
Active Directory
Advertising
After Effects
Ajax
Algorithmic
Android
Animation
Apache
Architecture
Art & Craft
Article Rewriting
Articles
ASP
Asterisk PBX
Astroturfing
Audio Services
Audio Transcription
AutoCAD
Automotive
Banner Design
Biology
Biotechnology
Blackberry
Blog
Boonex Dolphin
BPO
Branding
Building & Architecture
Building Architecture
Bulk Marketing
Business Analysis
Business Cards
Business Plans
Buyer Sourcing
C Programming
C#
C/C++
CAD/CAM
CakePHP
Caricature / Cartoons
Cartography/Maps
Chemical Engineering
Christmas
Chrome OS
Cisco
Civil Engineering
Cloud Computing/EC2
CMS
Cocoa
Codeigniter
Cold Fusion
Computer Security
Conceptual Design
Construction Monitoring
Contracts
Copywriting
Corporate Identity
Craigslist
CRM
Cryptography
CSS
Customer Support
Data Entry
Data Processing
Dating
Delphi
Desktop Support
Django
DNS
DotNetNuke
Dreamweaver
Drupal
E-Commerce
eBay
eBooks
eCommerce
Editing
Electrical Engineering
Electronic Forms
Electronics
eMarketing
Embedded Software
Engineering
Erlang
ERP
Excel
Expression Engine
Facebook
Fashion Design
Fiction
Finance
Finance Research
Financial Markets
Finite Element Analysis
Flash
Flex
Forum Posting
Forum Software
Game Design
Genealogy
Geology
Ghostwriting
Google Analytics
Google App Engine
Google Go
Google Wave
GPGPU
Grant Writing
Graphic Design
Handheld
Handheld / PDA
Home Design Drafting
Human Resources
IIS
Illustration
Illustrator
InDesign
Industrial Design
Insurance
Interior Design
Internet Marketing
iPhone
iSeries / AS400
J2EE
Java
JavaFX
Javascript
Joomla
JSP
LaTeX
Layout / Formatting
LDAP
Leads
Legal
Legal Advice
Legal Research
Link Building
LinkBuilding
Links
Linux
Logo Design
Mac OS
MacOS
Magento
Magneto
Management
Manufacturing
Market Research
Marketing
Materials Engineering
Matlab/Mathematica
Maya
Mechanical Engineering
Mechatronics
Medical
Medical Writing
Metatrader
Microcontroller
Microsoft
MLM
MMORPG
MODx
MS Access
MS Exchange
MS Expression
MS SQL
MS Windows
mSQL
MSWindows
Multimedia
Music
MySpace
MySQL
Objective C
Oracle
Order Processing
OsCommerce
Packaging / Covers
Palm
Patents
Paypal API
PCB Layout
PDF
PeopleSoft
Perl
Perl/CGI
Phone Support
Photo
Photo Editing
Photography
Photoshop
PHP
PLA / SCADA
PostgreSQL
Powerpoint
Print
Printing
Product Descriptions
Product Sourcing
Programming
Project Management
Project Scheduling
Proofreading
Protoshare
PSD Coding
PSD to HTML
PSD2CMS
Publishing
Python
Quantum
Quantum Computing/Physics
QuarkXPress
Quickbooks/Quicken/MYOB
REALbasic
Recruiting
Rendering/3D
Report Writing
Research
Reviews
Ruby/Ruby on Rails
Sales
SAP
Scientific Research
Script Install
Script Installation
Search Engine Optimization
Second Life / Virtual Worlds
Security
SEM / Adwords
SEO
Sharepoint
Shell Script
Shopping Carts
Silverlight
Social Networking
SocialEngine
Software Architecture
Software Testing
Solidworks
Sports
SQL
Stationery Design
Statistical Analysis
Structural Engineering
Supplier Sourcing
Support
Symbian
System Admin.
System Administration
Tax
Technical Support
Technical Writing
Telemarketing
Templates
Test Automation
Testing / QA
Training
Transcription
Translation
Travel Writing
Troubleshooting
Tutoring
Tutoring / Education
Twitter
Typography
UML Design
User Interface / IA
vBulletin
Verilog / VHDL
Video Services
Video Uploading
Virtual Assistant
Virtual Reality
Visual Basic
Voice Talent
VoIP
Volusion
Web Promotion
Web Scraping
Web Search
Website Design
Website QA
Website Security
Weddings
Windows
Windows Mobile
Wireless
Word
Wordpress
Writing
XHTML
XML
XXX
YouTube
Zen Cart
Zend


Your Ad Here

mod_rewrite problem - wordpress & cake php


Your Ad Here

Required knowledge: Linux, Perl/CGI, PHP, System Admin.






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/">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/">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/">wordpress|wp-postpass_).*$
RewriteCond %{HTTP:Accept-Encoding} gzip
RewriteCond %{DOCUMENT_ROOT}/home/webapps/Wordpress/">wordpress/wp-content/cache/supercache/%{HTTP_HOST}/blog/$ 1/index.html.gz -f
RewriteRule ^(.*) /home/webapps/Wordpress/">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/">wordpress|wp-postpass_).*$
RewriteCond %{DOCUMENT_ROOT}/home/webapps/Wordpress/">wordpress/wp-content/cache/supercache/%{HTTP_HOST}/blog/$ 1/index.html -f
RewriteRule ^(.*) /home/webapps/Wordpress/">wordpress/wp-content/cache/supercache/%{HTTP_HOST}/blog/$ 1/index.html [L]
</IfModule>

# END WPSuperCache

# BEGIN Wordpress/">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/">wordpress.

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

thanks
Michael

and




Latest Related projects:

Title Bids Avg
Need A Resource In Cake Php 2 2 $ 60
Cake-php Site Customization 0 n/a
Need some very basic help with Cake PHP by andrewtn 0 n/a
Cake-php Site Customization 0 n/a
Cake Php 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
Need A Resource In Cake Php 0 n/a
Q & A Manager Script 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 Pharma Hack 3 $ 35
Wp Plugin Php Code 0 n/a
Wordpress, XHTML/CSS and PHP Coders Required   9 $ 261
Template customization wordpress php psd   1 $ 50
Wordpress Template Css/php Fix 0 n/a
WordPress Plugin or PHP MySQL Site   1 $ 250

Post your own project on getafreelancer Search for scimilar work on getafreelancer
Post your own project on scriptlance Search for scimilar work on scriptlance
Post your own project on eufreelance Search for scimilar work on eufreelance

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"