Jump to content
nimonogi

How to rename index file?

Recommended Posts

Hello,

 

I would like to rename index.php Portal's Home page to lets say portal.php

I want to do this in order to install whmcs in the root directory of my account.

 

Any suggestions?

 

Thanks.

Share this post


Link to post
Share on other sites

you can accomplish that by creating a new custom page called portal.php with a portal.tpl file , than place all the code from within the homepage.tpl file into the new portal.php file and change all your navigation links (if you are using the breadcrumbs beware no links will work) and than place your homepage code within the homepage.tpl file that is what we had to do as our site is 100% built within WHMCS only other draw back besides breadcrumbs is ou homepage title is Impact Connections . Support Home no way to change as the index.php file is encrypted

hope that helps if not ask and i will try more

Share this post


Link to post
Share on other sites
only other draw back besides breadcrumbs is ou homepage title is Impact Connections . Support Home no way to change as the index.php file is encrypted

 

You could easily change this within the header.tpl file, where it says

 

<title>{$companyname} - {$pagetitle}

 

Something like this would work:

 

<title>{$companyname} - {if $pagetitle eq "Portal Home"}Custom Title{else}{$pagetitle}{/if}

 

That will change the default Portal Home title to Custom Title ;) (worked fine for me, just tested it)

Share this post


Link to post
Share on other sites

yes dedicated but are those not in the php files not the tpl files

 

and the index.php file is encrypted you cant change or modify it without throwing errors i thought

Share this post


Link to post
Share on other sites

i just tested your method Baji and the support home page does not load with relations to how i got mine to have my home page as start page

both index.php and support.php load the homepage (not support Home)

Share this post


Link to post
Share on other sites

Also consider using .htaccess to define which file should be used on the home page:

 

Example:

DirectoryIndex custom_homepage.php

 

You may need to put a .htaccess file in the admin folder like:

DirectoryIndex index.php

 

So it does not mess that up.

Share this post


Link to post
Share on other sites

Oi,

Estou usando o modelo lowendhost free do whmcs.

O problema é que ele tem um index.php e quero colocar no mesmo diretorio que o whmcs que também possui um index.php.

Alguma sugestão?

Tentei fazer com tpl, mas acabei me perdendo.

Share this post


Link to post
Share on other sites

Hi,

Sorry, for having previously written in Portuguese.

I'm using the lowendhost free theme and would like to put it in the same directory as whmcs.

I found a problem, they both have the index.php file.

Is it possible to rename or create a shortcut to the whmcs index within the lowendhost site?

Any help would be welcome.

kako

Share this post


Link to post
Share on other sites

In that file, the folder that says "whmcs-template" is what you want to use and pretty much ignore the php-template unless you want to use that for your main site.   Contact the theme developer for further support though.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated