Ticket #604 (new defect)
Generation of .htaccess rules, specifically RewriteBase
| Reported by: | JavaWoman | Owned by: | unassigned |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.4 |
| Component: | installer | Version: | 1.1.6.3 |
| Severity: | major | Keywords: | installer |
| Cc: | JavaWoman, DotMG |
Description
Two items migrated from http://wikkawiki.org/SuggestionBox about generating a RewriteBase rule when appropriate. Please note that the (often repeated) "subdirectory" argument is actuall a red herring: a RewriteBase rule is needed (even for a root install) if the document root for the site is aliased; this is often (but not necessarily) the case in shared hosting environments. What remains is the (repeated) suggestion to automatically create this rule when needed because in such environments rewriting just won't work without it.
1. mod_rewrite idea (.htaccess) (The following was copied from a comment on ModRewrite -- JavaWoman) Hi, I discovered that the default .htaccess included did not work for my setup up. I needed to include RewriteBase /directory/ as well since Wikka is installed in a subdirectory. I hope this helps anyone having trouble getting Wikka to work. -- h-67-102-97-191.mclnva23.covad.net (2005-02-11 04:49:37) The installer correctly deduces the base path for the configuration; it could conceivably also detect if it's sitting in a subdirectory, and if so, dynamically change the .htaccess file and include the correct RewriteBase statement to take care of this. --JavaWoman
2. Create rewrite rules on install
copied from comment on WikkaInstallation --JavaWoman
Since I installed wikka in a subdirectory under the domain root I needed to add the following to the .htaccess file just under "RewriteEngine on":
RewriteBase /subdirectory/
Devs, how about writing the .htaccess rules at the same time you write out the wikka.config.php file since you automatically pickup the wiki base location at that point?
-kt -- KarmaTester (2005-01-26 06:52:07)