How to make Trac and cakePHP work together?
You need to update .htaccess for cakePHP.
Here are the content and explanation of new .htaccess.
1. To make Trac and cakePHP work together, we need to add
RewriteCond %{REQUEST_URI} !^/trac*
inside cakePHP rewrite rules
2. To make Trac HTTP authentication work, we need to add
ErrorDocument 401 /401.html
and create 401.html on the same directory as cakePHP.
Taken from: https://wordpress.org/support/topic/htaccess-and-subdirectories/
401.html can be empty file or use the following HTML tags.
Authorization Required
It will only display when someone failed to login.
ErrorDocument 401 /401.html
RewriteBase /
RewriteRule ^$ app/webroot/ [L]
RewriteCond %{REQUEST_URI} !^/trac*
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) app/webroot/$1 [L]
Articals in this section
-
How to make Trac and wordpress work together
Updated on 2025-11-18 08:04:51
-
Activate RVsubversion Manager for RVskin 10.58 - 12.37
Updated on 2025-11-18 08:04:51
-
How to make Trac and cakePHP work together?
Updated on 2025-11-18 08:04:51
