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.
Related
I have an installed WordPress website.
I'm working on the site, therefore, I want to show a constructor page for the internet user. I have created a page which called first.html and I change the .htaccess file like below
#Alternate default index page
DirectoryIndex first.html
Now when I enter my domain name on the browser I can see the first.html. This is working properly.
I'd like to see my changes by entering the domain and page name on the browser like
www.mydomain/index.php
or
www.mydomain/wp-content/themes/XXXTHEME/index.php
However, my theme pages don't work.
How can I achieve to do this?
Instead of making changes in .htaccess, I'd suggest you to use this plugin : https://wordpress.org/plugins/maintenance/
Simply name your html file "index.html"
Web servers most commonly parse the index.html file firstly (unless told otherwise) and if it is not found, it proceeds to index.php
This also allows you to simply change that ".html" part to ".php" to see the website you are working on, without installing plugins that clutter your database or making unnecessary changes to your .htaccess file.
I want to re-do a website using Wordpress. Since I don't feel confident in developing it somewhere else then moving it to the server once completed, I've moved the actual website on a subdir, put a index.html file containing just a redirect on the root, then installed wordpress.
Plan is: visitors just calling the url will get index.html, so will be redirected to the old website in the subdir, while I should be able to call url+index.php to check the wp website in development (since html has priority over php).
Once website will be completed, I'll remove the index.html file performing the redirect and visitors should start viewing the new website.
Problem is: even when calling url/index.php I'm redirected as if I had not added the specific request to index.php file.
Any help?
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 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.
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.