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.
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 .
#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.
Related
I've got a WordPress page where the permalink is /foo.
I'm hoping to add a new HTML page (non-WP) at /foo/bar, but when I created that folder via FTP, obviously the original /foo page started showing an empty directory, instead of the old WP page.
Is there any way of combining the two, so the index of /foo is the WordPress page and the index of /foo/bar is a non-WP HTML page?
Many thanks!
The HTTP request first resolve the folder which you placed inside your WordPress installation. So there is no direct way to achieve this becuase your sub-folder name is same as the page URL.
You need to rename your folder-name/page permalink to make this happen.
Here is some suggestions,
WP Page and Subdirectory with same name
Page URL not working due to physical directory
Also please ask WordPress related question here: WordPress Stack Exchange
I've just installed Wordpress from my cPanel with Hostgator and this is my dilemma:
My static html site was hosted here at www.mydomain.com and I installed Wordpress in same path. I am able to login into my dashboard and activate new themes but when I click visit website that takes me to same html version and not my Wordpress site. How do I configure my site so that instead of loading my old html site it, it will take me to WordPress site instead. if I remove files for html site, will it automatically render my new WordPress site or do I need to do extra configuration for this to happen?
Your static html site probably has an index.html file, and your WordPress install has an index.php script. Since you installed WordPress in the same folder as your static site both will now exist in the same folder.
The default configuration for Apache is when you browse to the doc root or a directory Apache will look for index.html first and if not found then look for index.php
DirectoryIndex index.html index.php
In your case index.html is found and served.
If you remove or rename index.html you should see your WordPress install since Apache will then look for index.php.
Change the Name of the old file or if you are not going to use it.Just get rid of it.
I'm using FileZilla to put Wordpress on my website.
This Website already existed and already had some pages in it, and it does a backup everyday.
Unfortunately I can't delete index.html on the backup folder, so even if I use Wordpress to edit themes et cetera, THAT index.html is shown when i go visit the web site.
In the Wordpress folders there isn't a index.html file, only a index.php file, is it normal?
Yes, this is normal because Wordpress uses PHP for dynamic pages.
You can add this to your htaccess to prefer .php over .html
DirectoryIndex index.php index.html
Or set your wordpress Site in a sub directory of your regular site.
thanks in advance for any and all suggestions.
I am trying to put a temp site built in Adobe Muse in place of the existing Joomla site
and I am wondering if in doing that, I can till link to the original Joomla site.
eg: as an "archive" page perhaps.
If not, I'd still like to be able to do that without damaging the original Joomla site itself.
The original Joomla site doesn't need to be seen (online).
I don't want to work in Joomla, I don't want a Joomla plug-in.
thanks in advance.
If your Adobe Muse website has an index.html (instead of index.php), then this will work for you, all you need to do is to ensure that your .htaccess file first processes the index.html file, and then the index.php file. So, in order to access your Joomla website, your link should be http://www.yourwebiste.com/index.php . Here's the line that you should add in your .htaccess file:
DirectoryIndex index.html index.php
Recently I've been working to develop a multi-user Wordpress site with Wordpress 3.0 however at the moment we are iso.g one server to showcase preview static content in a subdirectory while multi WP is in the root directory.
My question however is how to keep the root directory hidden from the publc. Curntly I have a PHP index file handling he redirect howevwer as WP has its own index file I waned to ask about any possible alternatives.
Thanks very much for any assistance,
You're probably going to want to do it with an .htaccess file. However, Wordpress has one of those too, so rename the current .htaccess file to .htaccess.orig (or whatever you want... but don't delete it) and then create your new .htaccess file with your 301 redirect.
Then whenever you are done, just rename everything back to the way it was.