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.
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 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.
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
I have a web-site created with Joomla. I have two different index pages. One of them is "index.php" and the other one is "index.html". I want to set default page as "index.html" when I browse the URL of the site (However, now, the active default page is index.php). I have a href from that .html page to index.php. I have not change the content of index.php.
How can I change it from a configuration page or something like that?
It depends on the web server you are using, if you are using Apache, it's the DirectoryIndex configuration you need to change, see here. For other types of server, I don't know, you'll need to read the docs.
Using an .htaccess file, you can change the index file to something else other than any of the index defaults. To do this, insert the below line into an .htaccess file.
DirectoryIndex index.html index.php
I have a wordpress site http://hamroletang.com and it contain a file http://hamroletang.com/sardanjali.html
Now I want sardanjali.html to be my website landing page.
Then it will redirect to index.php which i have done already
The easiest way would be to rename sardanjali.html to index.html and add:
<meta http-equiv="refresh" content="5;URL='http://hamroletang.com/index.php'">
Then, make sure that in your Apache config .html takes precedence over .php
You can rename sardanjali.html to index.html and then change in the apache config the directory index to have index.html before index.php:
DirectoryIndex index.html index.php
On my system this was already the default (ubuntu).
In your redirect you should explicitly redirect to index.php, and not to the domain in general.
If you cannot change apache config files and renaming to index.html doesn't help, then you can move your blog to a subdomain or subdirectory and redirect into that. But that would break all the links to your blog. Probably not what you want.
You can change the default page of your website to whatever you want it to be. In your case specify the single file sardanjali.html as your default page. The settings vary between web servers. e.g. on Apache here are the instructions - http://www.cyberciti.biz/faq/apache-display-or-change-a-default-page-other-than-indexhtml/
And yes, you have to use the refresh in your sardanjali.html to automatically redirect the user to your index.php after the specified time.