• Welcome to Simple Machines Community Forum. Please login or sign up.
January 25, 2022, 02:39:08 PM

News:

Wondering if this will always be free?  See why free is better.


Rename index.php

Started by Thantos, November 27, 2005, 11:17:01 PM

Previous topic - Next topic

ultide

thanks a lot .... i needed this :D
[nofollow]

devinlefevere

September 19, 2009, 07:42:26 PM #21 Last Edit: September 19, 2009, 10:40:40 PM by devinlefevere
Which index file do I need to modify? the one in sources or the main folder?

also can Caps be used?

Arantor

You need to modify the very topic index.php.

Caps can be used only if you make sure the definition of $scripturl is updated too; some servers dislike caps, so be careful.

In general this whole process isn't really recommended; putting it in a folder would be far more preferable generally.
No good deed goes unpunished
All helpful urges should be circumvented

devinlefevere

Quote from: Arantor on September 20, 2009, 09:49:38 AM
You need to modify the very topic index.php.

Caps can be used only if you make sure the definition of $scripturl is updated too; some servers dislike caps, so be careful.

In general this whole process isn't really recommended; putting it in a folder would be far more preferable generally.

Gotcha. Well thanks for the help. I might go the folder route then in that case.

Arantor

Can I ask what the need for not putting it in a folder was?
No good deed goes unpunished
All helpful urges should be circumvented

darrenbeige

If you have done this to your forum, if you install any more mods through the package manager, it will report it as going to fail. This is not the case. Carry on with the package installation, and manually add any code to your new index.php (whatever it may be called).

Thanks,

Arantor

Only if the mod alters index.php - not all of them do.

It's still not really recommended to do this anyway.
No good deed goes unpunished
All helpful urges should be circumvented

darrenbeige

A lot of them do though; mainly to add to the actions array...

Arantor

Speaking as a mod author; only 1 of the mods I've written actually targets index.php - while mods can and do add actions, fewer do so than you might think.
No good deed goes unpunished
All helpful urges should be circumvented

darrenbeige

I suppose it depends what mods you add. Most of mine seemed to add to the actions array. Anyhow, regardless of how common or uncommon the event may be, it is still possible that you may need to perform the index.php edits manually.

Arantor

Oh, of course. And in those cases, yes, you will have to perform those on whatever you rename index.php to, since the mod will HAVE to be manual-installed at least for that step.
No good deed goes unpunished
All helpful urges should be circumvented

MDMeyers

Recently installed SMF and allowed program to default setting on install. 
Now, I see URL is non descrilptive.  Read thread about rename index.php and wanted to know that would address this issue with URL?
Thanks

Arantor

Install Pretty Urls or SimpleSEF mod. However in a forum, descriptive URLs do NOT have an SEO benefit AT ALL.
No good deed goes unpunished
All helpful urges should be circumvented

BadBiz

Quote from: Thantos on November 27, 2005, 11:17:01 PM
To rename the forum's index.php file do the following:

Rename the actual file.
Open QueryString.php in your Sources directory
Find $scripturl = $boardurl . '/index.php';
And change index.php to whatever filename you want.
Hi there, thank you for the information but in my case this did not work this is what I did,

Edited;
QueryString.php

Which said;
$scripturl = $boardurl . '/index.php';

Renamed;
mydomain/index.php to mydomain.home.php

Saved All;

Forum Crashed any suggestions it went back fine when I renamed the home.php and reversed everything

Any suggestions would be appreciated

kat

Quote from: BadBiz on May 01, 2011, 03:56:11 PM
$scripturl = $boardurl . '/index.php';

Renamed;
mydomain/index.php to mydomain.home.php

Is that a typo?

I believe it should be:

mydomain/index.php to mydomain/home.php

Subtly different, yes?

Frona

Quote from: Thantos on November 27, 2005, 11:17:01 PM
To rename the forum's index.php file do the following:

Rename the actual file.
Open QueryString.php in your Sources directory
Find $scripturl = $boardurl . '/index.php';
And change index.php to whatever filename you want.
I do that, but it dosen't wotk :(

I follow this way:
1. renaming index.php to abc.php
2. changing $boardurl . '/index.php'; line of QueryString.php file to $boardurl . '/abc.php'
3. moving files and folders to root of host, then trying to install SMF using:
www.***.com/install.php

But I get this error:
Quote!! Critical Error!
Unable to find crucial installation files in the directory of this script!
Please make sure you uploaded the entire installation package, including the sql file, and then try again.
See here [nofollow], plz.

Frona

January 29, 2012, 04:06:36 PM #36 Last Edit: February 03, 2012, 03:57:05 AM by Barion
searching After days, I found this topic and above trick, but it doesn't work on SMF2.0.x!

Frona

January 30, 2012, 09:18:45 AM #37 Last Edit: February 03, 2012, 03:59:23 AM by Barion
please help! that's important for me to:
1. Rename index.php
2. hide the index of SMF => Users should not access to front page(index), I'll give them links of subforums!

Frona


tmlander

 :(

This doesn't seem to work for me... I'm running version 2.0.2

I changed the $scripturl located in Sources/QueryString.php to my file name...
I changed the actual file name...
I cleared the cache by going to Forum Maintenance >> Empty the file cache

What am I doing wrong?

Any help would be appreciated!!!

Advertisement: