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.
Related
I have a WordPress installation on my website. Now I need to create a landing page (not WordPress) and, at the same time, maintain the WordPress installation on the same folder and still being able to access it with a different URL (e.g. www.mysite.com/blog.php instead of www.mysite.com).
So, to sum up:
index.php should be changed to blog.php
In this way, I can add a landing page (index.html) to my website
When accessing the website I should see the landing page (index.html), but still be able to see WordPress at www.mysite.com/blog.php (so, maintaining also the old permalinks to the blog)
I guess I should be changing the .htaccess file and maybe the settings of the blog, but I'm not able to find anything on the web (probably, I don't know what to look for).
By default server show index.html file first. you should not create a blog.php page. if in a directory has two files index.html and index.php you will see index.html when you visit your site.
just create an index.html page it will automatically show at first.
and if it not works .. just backup your .htaccess and delete it until you are working on developing.
That's it.
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.
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 know this may sound simple and over asked, but I searched and didn't found. I also asked on two other forums and they couldn't answer.
So here I go:
I have a joomla website (www.example.com) The home page is www.example.com/en, but I want to have a landing page directly on www.example.com. On this page will be a menu to redirect to the main site which is in 3 different languages (so a menu with 3 options). I already have my html and css page for the landing page-menu ready. I just need to know how to put it as the home page of my website.
I use GoDaddy, and there are many index.html, index.php, config.php, .htaccess, in the file manager. Do I just put my html and css files along with my images in the root folder? Or do I also need to redirect some url somewhere?
I hope I have been clear! Thanks!
You could set DirectoryIndex in your .htaccess file.
DirectoryIndex intro.html index.php
This will make intro.html the default page that will be loaded and index.php as fallback.
Reference: DirectoryIndex Directive.
Hope this helps
Prepare a landing page with the menu as u wish and name index.php/ index.html as your choice. Replace the file on the server with this file.
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.