Actions

Talk

Difference between revisions of "Creating a basic Joomla! template"

From Joomla! Documentation

(New page: OK, something has gone wrong here. I edited the "creating an index.php file" and it went wrong - renamed itself 404.shtml. It refused to allow editing of the "creating" file so I tried mak...)
 
m
Line 1: Line 1:
 
OK, something has gone wrong here. I edited the "creating an index.php file" and it went wrong - renamed itself 404.shtml. It refused to allow editing of the "creating" file so I tried making a new one "create". Now I can't access either to edit them.
 
OK, something has gone wrong here. I edited the "creating an index.php file" and it went wrong - renamed itself 404.shtml. It refused to allow editing of the "creating" file so I tried making a new one "create". Now I can't access either to edit them.
 +
 +
Yeah, okay, I know why this is happening.  There is a mod_rewrite rule that looks for "index.php" and rewrites the URL in its SEF form.  This fails if "index.php" appears as part of the page name and so you get redirected to 404.shtml which is MediaWiki's "page not found" page.  I think the quick and easy fix is to simply avoid having "index.php" in page names.  [[User:Chris Davenport|Chris Davenport]] 10:29, 2 May 2008 (EDT)

Revision as of 09:29, 2 May 2008

OK, something has gone wrong here. I edited the "creating an index.php file" and it went wrong - renamed itself 404.shtml. It refused to allow editing of the "creating" file so I tried making a new one "create". Now I can't access either to edit them.

Yeah, okay, I know why this is happening. There is a mod_rewrite rule that looks for "index.php" and rewrites the URL in its SEF form. This fails if "index.php" appears as part of the page name and so you get redirected to 404.shtml which is MediaWiki's "page not found" page. I think the quick and easy fix is to simply avoid having "index.php" in page names. Chris Davenport 10:29, 2 May 2008 (EDT)