Skip to content
Browse files

Support for Coda previews on controllers.

  • Loading branch information...
1 parent 346ac32 commit 0f432e3de22f6f903a5eda76b980d6564267655a @philsturgeon philsturgeon committed
Showing with 6 additions and 1 deletion.
  1. +3 −0 .htaccess
  2. +3 −1 application/modules/news/config/routes.php
View
3 .htaccess
@@ -2,6 +2,9 @@
Options +FollowSymLinks
RewriteEngine on
+ RewriteRule modules/(.+)/controllers/(.+)\.php$ /index.php/$1/$2 [L,R=301]
+ RewriteRule controllers/(.+)\.php$ /index.php/$1 [L,R=301]
+
#RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
View
4 application/modules/news/config/routes.php
@@ -20,6 +20,9 @@
| http://www.codeigniter.com/user_guide/general/routing.html
*/
+$route['news/index'] = "news/index";
+$route['news/admin'] = "news/admin";
+
$route['news/(:num)/(:num)/(:any)'] = "news/view/$3";
$route['news/page/(:num)'] = "news/index/$1";
@@ -33,7 +36,6 @@
$route['news/archive/(:num)/(:num)/(:num)'] = "news/archive/$1/$2"; // Paginated pages
$route['news/archive/(:num)/(:num)'] = "news/archive/$1/$2"; // Main archive pages
-$route['news/index'] = "news/index";
$route['news/(:any)'] = "news/view/$1";
?>

0 comments on commit 0f432e3

Please sign in to comment.
Something went wrong with that request. Please try again.