How can I change index.php to index1.php in joomla? - php

I want to change index.php to index1.php in joomla eg :
Now it is www.domain.com/index.php?option=com_content.....
I want change to :
www.domain.com/index1.php?option=com_content.........

In Joomla, index.php is the starting point for every single "page" that can be displayed by the CMS. Trying to change that would require extensive changes to the Joomla core. I would highly recommend not doing that, you will regret it. You have a couple of options -
Use index.html or maybe default.php for the other info you want. You can change the order that the web server uses the default file so that one of those comes up before index.php
Put Joomla in a subdirectory

Related

Change Startup Page of a WordPress website

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.

Embedding WordPress into static site

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.

html front end on joomla based 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

site only shows all info from index.php?

Sorry if this is a basic question, but Im wondering why my site doesn't display correctly unless I utilize the index.php extension. Here is an example :
www.copishboutqiue.com/salon
which displays incorrectly but
www.copishboutique.com/salon/index.php displays the correct layout we're using. Why do I need to use the index.php when this is the only file in the root directory?
if you are using an apache server create a .htaccess file in the root directory of your website and add
DirectoryIndex index.php

How to integrate wordpress with an existing php homepage?

I have already a site with a single homepage index.php which accepts 2 parameters like
http://mydomain.com/index.php?param1=something&param2=somethingelse
param2 can be optional
I want to install wordpress on the root directory, except for index.php and the above url, I want wordpress to show the blog pages.
How to do that either in PHP and/or htaccess ? (I'm very bad at htaccess so I prefer php).
You can follow this approach: http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory
and then merge the functionality of your existing index.php with Wordpress' index.php (your custom parameter handling etc). Or should your current index.php be completely different?

Categories