Use a different main index

Permalink
I did some searching and the results indicated that yes, this is possible - but they either linked to pages that don't exist anymore, or were too abstract to be useful in determining how.

Right now my site is set up as such:

maindomain.com/index.php

I want to make the index.php file something totally different, not running on the C5 engine at all. But I still want all of the content in C5 to be available as normal, which right now is like

maindomain.com/page1
maindomain.com/page2/subtopic

etc.

What files do I change, and how do I change them?

lisbokt
View Replies:
Remo replied on at Permalink Reply
Remo
I don't think this is possible without using some fancy rewrite rules in your .htaccess file.

Can you post the articles you've found? I currently can't see a solution which isn't going to be quite abstract.

The way concrete5 works depends on rewrite rules and since there are no files you can't simply check if a file exists.

Without knowing what you're really trying to achieve, can the webserver know which script to call in this situtation?
maindomain.com/page1 (c5)
maindomain.com/ (something else)

What could c5 use to determine the difference between the URLs?
lisbokt replied on at Permalink Reply
lisbokt
http://www.concrete5.org/community/forums/installation/is-it-ok-to-rename-the-index-php/ this is what I found.

What I want to do, essentially, is run Wordpress and C5 side-by-side. WP is set up to do multi-blog blogging and I have over 3,000 users and it's a rather particular setup. I have C5 set up with over 250 pages and it's all very cross-referenced and there's over 3000 images in the galleries and...

I want the maindomain.com/ to point to WP (or at least, the most recent post) and then maindomain.com/page1 to point to the "page1" in C5.

If that makes sense.
Remo replied on at Permalink Reply
Remo
Yes, thanks for the clarification.

I don't think that's going to be easy, I'd use a RewriteMap (htaccess) to achieve this.

Just think about one thing: How can the web server know that maindomain.com/category1 is a wordpress site but maindomain.com/page1 isn't? You need to find a rule which you can process in your htaccess file or set up a map for each top level directory..