Is there a way to exclude a directory from being parsed in c5?
PermalinkI want to put a mediawiki wiki in a folder off the root named 'wiki'. However, try as I might, I can't convince c5 not to try and parse it as a page.
Does anyone know how to do this?
Thanks
Thanks for your reply, but I think you've got the wrong end of the stick. I don't mean the sitemap or anything 'inside' c5 itself.
What I'm talking about is an actual physical folder in the webroot named 'wiki' which contains an installation of mediawiki, and sits on the same level with the folders and files that make up concrete5.
Sorry I should have said 'webroot' instead of just 'root'.
Whenever I try to navigate tohttp://www.site.com/wiki - c5 tries interpret 'wiki' as though it were a page in the system, and when it can't find anything called wiki, gives me the 404. I need it to NOT do that.
As far as using an add-on. I don't think that there is a wiki add-on for c5, and even if there was, I doubt it'd be free.
Cheers
>http://www.site.com/wiki - c5
> tries interpret 'wiki' as though it
> were a page in the system
Ok, I see now. It might have something to do with pretty URLs. Which version of C5 are you using? I'm using the beta version of 5.4.1. I did a quick test and don't see that behavior - even with pretty URLs enabled.
Here's a post that seems related though...
http://www.concrete5.org/community/forums/installation/c5-in-subfol...
-Steve
RewriteEngine off
That'll turn off mod_rewrite for all directories below, and let mediawiki's directory get parsed.
Cheers
Many thanks
C.
I appreciate your reply and suggestion. I have tried to move the .htpassw up one level so it does not reside with .htaccess files but this has not solved the problem. C5 still catches these directories and returns a Page not Found error.
V.
Did you solve this problem?
I have the same one and can not get it solve.
Thank you very much!
I solved the problem by creating subdomains (rather than simple directories) and placing non-concrete content there. Then I added a redirect script in the .htaccess file.
cheers
V
My MOD ReWrite looks like this
# -- concrete5 urls start -- <IfModule mod_rewrite.c> RewriteEngine Off RewriteBase /costumeshoppe/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L] </IfModule> # -- concrete5 urls end -- # -- concrete5 urls start -- <IfModule mod_rewrite.c> RewriteEngine Off RewriteBase /costumeshoppe/mobile-dev/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d
And this code is installed in the "mobile-dev" folder so that the pretty URLs don't effect this path.
I was playing around adding the "mobile-dev" option for the rewrite after the default option didn't work. But I'm at a loss. Any ideas?
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !/updates/ RewriteRule ^([^.]+)$ index.php/$1 [L] </IfModule>
Take careful note of the addition of the extra RewriteCond and change in the RewriteRule - no longer using:
^(.*)$
This was the only way that I was able to get the C5 Page Not Found to not show up.
Bad news is that updating C5 is now a manual process. I can live with that.
If you need to install something else on your hosting account, you have to do that outside of C5. You should first, however, make sure that whatever functionality you're after can't be provided by C5 or an add-on.
-Steve