Reputation: 105
I am trying to use wordpress in conjunction with my static site. The wordpress page will just be the gallery. I have wordpress installed in the root dir of my site to prevent an extra subfolder in the link (site.com/wp/page).
I am trying to my index page as the static on which isn't using wordpress so what I tried doing was changing the directoryindex file in the .htaccess but obviously didn't work because wordpress uses index.php to launch the wordpress environment.
Does anyone know any work around for this? It would be greatly appreciated.
Upvotes: 0
Views: 65
Reputation: 4197
@GANIZ
Here is a way to help you achieve what you want. You can create a subdomain ex. gallery.example.com and point it to the new directory you have created in root dir.
This should make it publicly available. Then the simplest form of importing a page from the wordpress installation is with an HTML iframe
. Also note that Wordpress requires a MYSQL database.
Upvotes: 0
Reputation: 142
Add this to your .htaccess file :
DirectoryIndex mynewindex.php
this will set your main directory index to be mynewindex.php so change it to what ever index page you want .
Upvotes: 0