Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Hj Ahmad Rasyid Hj Ismail on August 20, 2010, 04:01:10 AM

Title: RIPC: Remove Index.Php Completely From URL for SEO
Post by: Hj Ahmad Rasyid Hj Ismail on August 20, 2010, 04:01:10 AM
Link to mod (http://custom.simplemachines.org/mods/index.php?mod=2709)

RIPC: Remove Index.Php Completely From URL for SEO

- For SMF 2.0.x & 1.1.x
- Only htaccess modification.

1. Please do your own backup though every installation is backed up automatically.
2. This mod will try to index.php from your forum completely via url rewrite using htaccess approach.
3. If you need a simpler mod, you can use the second RIPTP package which removes index.php only in three places;
that is in your forum name or image link, home menu button link and top linktree link.
4. This IMO should boost your forum SEO a little bit. ;)
5. It should not have any problems with other mods bu do report any error or problem you faced, if any.


Thank you for using it.


Yours friendly,
Abu Fahim Ismail.

BSD License. Feel free to modify accordingly but keep author's link if it is in here somewhere. ;)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fvalidator.w3.org%2Fimages%2Fvalid_icons%2Fvalid-xhtml10&hash=f3694497572838dc55641db875ff57107ebabaed)  (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fjigsaw.w3.org%2Fcss-validator%2Fimages%2Fvcss&hash=710d7530f8727db53c62cb8f44abbef39967e693)
Title: Re: Remove Index.Php From URL
Post by: Afro on August 20, 2010, 07:00:37 AM
I like this mod, but

How does it affect the already indexed urls ?
Title: Re: Remove Index.Php From URL
Post by: Smog on August 20, 2010, 12:47:17 PM
Quote from: Afro on August 20, 2010, 07:00:37 AM
I like this mod, but

How does it affect the already indexed urls ?
Good question.  :)

My question: will it remove index.php from ANY url in a board??
Title: Re: Remove Index.Php From URL
Post by: IrateZebra on August 20, 2010, 01:03:24 PM
This mod works by removing the "index.php" from URLs in QueryString.php, thus making URLs look like this: "http://www.example.com/forum/?board=1.0"

So it won't harm it at all by including the "index.php" from already indexed URLs.
Title: Re: Remove Index.Php From URL
Post by: Afro on August 20, 2010, 01:05:25 PM
I am a little cautious when it comes to urls,
I learnt from my mistakes in the past.
My site jumped from 78000, down to 670,000 because i had to change all my urls from pretty to dynamic.
The best way is to let the dynamic url stay put. Thats the only way you can add mods whenever you feel like.
Title: Re: Remove Index.Php From URL
Post by: ~DS~ on August 23, 2010, 09:02:16 AM
Ok I think if you have "Search engine friendly URLs" checked and this mod installed...it will give a 500 internal error on topic.
Title: Re: Remove Index.Php From URL
Post by: Afro on August 26, 2010, 07:16:45 AM
Quote from: Dismal Shadow on August 23, 2010, 09:02:16 AM
Ok I think if you have "Search engine friendly URLs" checked and this mod installed...it will give a 500 internal error on topic.

Which is disastrous to your website.
Title: Re: Remove Index.Php From URL
Post by: Wiejeben on September 04, 2010, 12:18:27 PM
Doesn't support Search engine friendly URLs, it gives a 404 error in a topic.
Title: Re: Remove Index.Php From URL
Post by: ~DS~ on September 04, 2010, 12:19:52 PM
Quote from: Wiejeben on September 04, 2010, 12:18:27 PM
Doesn't support Search engine friendly URLs, it gives a 404 error in a topic.
That's what I said.
Title: Re: Remove Index.Php From URL
Post by: Jokerâ„¢ on September 04, 2010, 01:20:59 PM
I have seen what mod do a lot of time in support board , so the mod don't do anything new . For e.g

http://www.simplemachines.org/community/index.php?topic=165358.msg1055811#msg1055811
Title: Re: Remove Index.Php From URL
Post by: Afro on September 04, 2010, 02:08:25 PM
I really need to consult Captain Arantor before using this one. :-X
Title: Re: Remove Index.Php From URL
Post by: Hj Ahmad Rasyid Hj Ismail on September 11, 2010, 07:58:39 AM
Quote from: Afro on August 20, 2010, 07:00:37 AM
I like this mod, but

How does it affect the already indexed urls ?

I personally dont know.

Quote from: Smog on August 20, 2010, 12:47:17 PM
My question: will it remove index.php from ANY url in a board??

Yes. It will.

Quote from: IrateZebra on August 20, 2010, 01:03:24 PM
This mod works by removing the "index.php" from URLs in QueryString.php, thus making URLs look like this: "http://www.example.com/forum/?board=1.0"

So it won't harm it at all by including the "index.php" from already indexed URLs.

May be, but I personally don't know.

Quote from: Afro on August 20, 2010, 01:05:25 PM
I am a little cautious when it comes to urls,
I learnt from my mistakes in the past.
My site jumped from 78000, down to 670,000 because i had to change all my urls from pretty to dynamic.
The best way is to let the dynamic url stay put. Thats the only way you can add mods whenever you feel like.

Yup! Better be cautious then not. As I said, prepare for the whether.

Quote from: Dismal Shadow on August 23, 2010, 09:02:16 AM
Ok I think if you have "Search engine friendly URLs" checked and this mod installed...it will give a 500 internal error on topic.

Noted with thanks a million to DS. Updated the OP in mod page and here too.

Quote from: Afro on August 26, 2010, 07:16:45 AM
Quote from: Dismal Shadow on August 23, 2010, 09:02:16 AM
Ok I think if you have "Search engine friendly URLs" checked and this mod installed...it will give a 500 internal error on topic.

Which is disastrous to your website.

Disastrous indeed...

Quote from: Wiejeben on September 04, 2010, 12:18:27 PM
Doesn't support Search engine friendly URLs, it gives a 404 error in a topic.

As stated above.

Quote from: Jokerâ„¢ on September 04, 2010, 01:20:59 PM
I have seen what mod do a lot of time in support board , so the mod don't do anything new . For e.g

http://www.simplemachines.org/community/index.php?topic=165358.msg1055811#msg1055811

Yup! Nothing new at all. It is a very very simple mod indeed.

Quote from: Afro on September 04, 2010, 02:08:25 PM
I really need to consult Captain Arantor before using this one. :-X

Please do. I'll like to hear what the expert says.



Title: Re: Remove Index.Php From URL
Post by: lucas-ruroken on September 23, 2010, 09:50:23 PM
I think... you should modify only the www.tuforo.com/index.php... and leave everything urls as www.tuforo.com/index.php?action=who (for example)
Title: Re: Remove Index.Php From URL
Post by: Hj Ahmad Rasyid Hj Ismail on September 24, 2010, 05:41:36 AM
Quote from: lucas-ruroken on September 23, 2010, 09:50:23 PM
I think... you should modify only the www.tuforo.com/index.php... and leave everything urls as www.tuforo.com/index.php?action=who (for example)
Solution for removing index.php for home button is to modify the Susb.php (which may be overridden by some mods like portal etc) and logo / forum name link in the index.template.php (which could be different in every themes) and replace with a link without index.php.

As noted this is not a SEF/SEO. and won't work with any of them.
Title: Re: Remove Index.Php From URL
Post by: lucas-ruroken on September 24, 2010, 02:39:51 PM
perfect! ;)
Title: Re: Remove Index.Php From URL
Post by: Hj Ahmad Rasyid Hj Ismail on September 24, 2010, 04:14:36 PM
You are welcome. I can't think on how to package it that way, since different portal use different approach. I might try this approach if I could. If I ever do it, I'll mention it in the update.
Title: Re: Remove Index.Php From URL
Post by: lucas-ruroken on September 25, 2010, 03:18:50 AM
Ok, thanks for share all of your custom modifications. ;)
Title: Re: Remove Index.Php From URL
Post by: Hj Ahmad Rasyid Hj Ismail on September 25, 2010, 04:48:48 AM
They are not really mine. They are all what I've learned here. I am just sharing them in packages.  ;D
Title: Re: Remove Index.Php From URL
Post by: sharks on October 05, 2010, 05:53:04 PM
Hi ahrasis

I want to first say thanks for this mod. I think it's a nice addition to bring a slightly more sophisticated look to the URL of any SMF forum. However, after installing your mod, i tried to login to my admin cpanel on my SMF 1.1.11 (default theme) and it wouldn't let me. It keep refreshing the admin login page.
Here is the admin login page URL, which is slightly different from the default one as your mod changed it as expected: smf/?action=admin
And after i tried to login, here is the new admin page URL: smf/?action=admin;%3Faction=admin

I obviously cannot login to uninstall that mod. So, how do i edit the php files (if any) to fix this problem. I would preferably like to keep this mod, but if it's too complicated to fix, then i would appreciate instructions on how to remove it completely without breaking anything in my forum.

Oh, and i do not have any SEF/SEO mods.
Title: Re: Remove Index.Php From URL
Post by: Hj Ahmad Rasyid Hj Ismail on October 06, 2010, 08:10:26 AM
Basically you can just parse the mod in its download page and you'll get this:.
/Sources/QueryString.php (You will need to open this file which is in your Sources folder obviously)

Find:
$scripturl = $boardurl;

Restore this original line.
$scripturl = $boardurl . '/index.php';

As you can note from the above post, this mod may not work with some portal as well. If you think you still want to use something like this mod without affecting others i.e. without index.php in homepage only, try this suggestion:
Quote from: ahrasis on September 24, 2010, 05:41:36 AM
Solution for removing index.php for home button is to modify the Susb.php (which may be overridden by some mods like portal etc) and logo / forum name link in the index.template.php (which could be different in every themes) and replace with a link without index.php.

As noted this is not a SEF/SEO. and won't work with any of them.
I believe yours is version 1.1.x and you just need to change your index.template.php and remove home link to yourforum url without index.php.
Title: Re: Remove Index.Php From URL
Post by: sharks on October 06, 2010, 11:21:37 AM
Thanks ahrasis, that fixed the problem... but isn't your mod quite "dangerous" to use, as it disables access to the admin panel and several of members have reported they have not been able to post anything as well.
Title: Re: Remove Index.Php From URL
Post by: Hj Ahmad Rasyid Hj Ismail on October 06, 2010, 02:35:17 PM
No it doesn't. It works fine in the newly installed SMF 1.1.11 or 2.0 RC3. The admin panel can be entered and used without index.php in the URL. So it is not this mod. By the way this mod is approved by SMF Customization Team.

I also cannot say it is one of yours either but do try on freshly installed SMF and you can confirm that this is true.
Title: Re: Remove Index.Php From URL
Post by: sharks on October 06, 2010, 04:47:54 PM
I have installed this mod together with your other mod called "remove index from forum title" (installed first). Could this combination have wrecked the forum?
Title: Re: Remove Index.Php From URL
Post by: Hj Ahmad Rasyid Hj Ismail on October 07, 2010, 04:35:07 AM
Remove index from title is one of my mod too. It doesn't affect this mod or other mods so far as the modification is concern. If you parse that mod in its mod site, you will find that it only remove - Index from index.english.php and other relevant utf and malay language file. It doesn't touch any other source or template file. So no, it is not the mod that cause your admin cannot be opened after installing this mod. My suspect is more on portal mod but I have try it with simple portal with no problem. May be I should check further.
Title: Re: Remove Index.Php From URL
Post by: sharks on October 07, 2010, 08:09:36 AM
I do not have any portal mod installed on my forum. My point is: after i manually edited the file to remove this mod, my forum was accessible again. I was able to access the admin panel and most importantly as i have just been informed, none of my members were able to post after i installed this mod! But after i removed it, everything went back to normal. After installing this mod, none of my members were able to send PMs and post topics. So, my conclusion is that the mod was to blame. Of course, i am no SMF expert and i am not being ungrateful or blaming you for the problems encountered on my forum after installing this mod, but i highly suspect that it contains some critical bug as my conclusion is based only on what me and all my members have observed.
Title: Re: Remove Index.Php From URL
Post by: Hj Ahmad Rasyid Hj Ismail on October 07, 2010, 08:33:39 AM
Feel free to put a non founded blame to this mod. So far that I have tested it, there is no problem with this mod. I have advised you what this mod is doing and how to undo it if you got any problems with it. I also had advised you on testing it on a new forum. I don't say it is a portal mod that have problem with this mod as all that I am saying is it "might" be. You can use my test forum here and post or pm anything that you want and it just work. This forum is using this mod too. Simply go to http://smf1.sup.my and register yourself for a test. This test forum don't keep your details as I will clean it up each and everytime I need to test a new mod.
Title: Re: Remove Index.Php From URL
Post by: Oya on October 07, 2010, 07:39:57 PM
sharks do you have pretty urls or similar installed?
Title: Re: Remove Index.Php From URL
Post by: sharks on October 08, 2010, 04:01:00 PM
Quote from: Oya on October 07, 2010, 07:39:57 PM
sharks do you have pretty urls or similar installed?
Nope.
Title: Re: Remove Index.Php From URL
Post by: cector on October 16, 2010, 11:28:42 AM
Dear ahrasis,

I have installed  Remove Index.Php From URL mod after that it was working but problem is my all post link is not working now because they are created with index.php file like that:

http://forum.abc.com/index.php/topic,302.msg25.html#new

I didn't find any keyword associate with index.php in the index.template.php in default and which theme I am using for the replacement with a link without index.php.

How can I resolve this problem?
Title: Re: Remove Index.Php From URL
Post by: Hj Ahmad Rasyid Hj Ismail on October 16, 2010, 01:39:12 PM
This mod won't work with SEF/SEO. To uninstall manually follow the quoted below:
Quote from: ahrasis on October 06, 2010, 08:10:26 AM
Basically you can just parse the mod in its download page and you'll get this:.
/Sources/QueryString.php (You will need to open this file which is in your Sources folder obviously)

Find:
$scripturl = $boardurl;

Restore this original line.
$scripturl = $boardurl . '/index.php';
Title: Re: Remove Index.Php From URL
Post by: Smitten on December 16, 2010, 10:02:25 AM
Can i put something else? For example: www.url.com/forum

Because I'm using a html index.
Title: Re: Remove Index.Php From URL
Post by: Hj Ahmad Rasyid Hj Ismail on December 16, 2010, 12:47:56 PM
It will not work with SEF / SEO and the OP clearly says that:

Your forum may not work if you turn on or add SEF/SEO before or after installation.

By using html index you are turning a SEF/SEO for your forum.
Title: Re: Remove Index.Php From URL
Post by: warezjasz on February 09, 2011, 03:31:23 PM
Hello everyone

I got a little problem with this mod, I'm working on SMF 2.0 RC4

I described my problem on this topic http://www.simplemachines.org/community/index.php?topic=421183.0

When I did previous topic, I didn't knew yet that the reason of this problem is Remove index.php mod

So what's the problem?

When I turn on Remove index.php mod, it removes .../index.php indeed, but...

When someone visting my site for the first time, the page is not loading for him fully, only when he refresh page, he see it working normaly

Just take a look, I'm turning this mod on right now.

www.gseo.pl

Any solutions?
Title: Re: Remove Index.Php From URL
Post by: Hj Ahmad Rasyid Hj Ismail on February 14, 2011, 03:26:17 AM
Quote from: warezjasz on February 09, 2011, 03:31:23 PM
Hello everyone

I got a little problem with this mod, I'm working on SMF 2.0 RC4

I described my problem on this topic http://www.simplemachines.org/community/index.php?topic=421183.0

When I did previous topic, I didn't knew yet that the reason of this problem is Remove index.php mod

So what's the problem?

When I turn on Remove index.php mod, it removes .../index.php indeed, but...

When someone visting my site for the first time, the page is not loading for him fully, only when he refresh page, he see it working normaly

Just take a look, I'm turning this mod on right now.

www.gseo.pl

Any solutions?
Try the updated version.
Title: Re: Remove Index.Php From URL
Post by: Truts2 on February 14, 2011, 07:30:48 AM
best way is to add this to .htaccess

RewriteCond %{REQUEST_URI} ^\/index.php$
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^(.*)$ http://mydomain.com/ [L,R=301]
Title: Re: Remove Index.Php From URL
Post by: DanteOz on March 28, 2011, 04:05:00 PM
Hi all, can any body lemme know how i can make all my forum url look like this (www.forum.com/example instead of www.forum.com/index.php) and still make the former one with index.php work?. e.g www.nairaland.com/nigeria
pls is it possible to implement it in 2.0rc4? thanks
Title: Re: Remove Index.Php From URL
Post by: donjazzy on June 30, 2011, 11:32:15 AM
hi Abrahsis, such a nice mod since it has the url neat and short. Works fine for me on 2.0. Is there a solution to the problem of error 404 when  SEARCH ENGINE FRIENDLY URL is turned on. I want index.php removed   when search engine friendly url is turned on and that is what I use on my forum
Title: Re: Remove Index.Php From URL
Post by: Herman's Mixen on October 18, 2011, 04:24:23 PM
its a nice mod Ahrasis but i should still make a replacement like this :


$scripturl = $boardurl . preg_replace('/index.php','?');


Which does the same as you provide but a still smoother on some server, your code breaks sometimes :P
Title: Re: Remove Index.Php From URL
Post by: InfoStrides on December 01, 2011, 03:41:23 PM
This mod works great no doubt. I did not encounter any issue with it. I decided to reverse to the index.php styled URLS. How can I redirect URL created and indexed by search engines back normal format.

/?action =======> /index.php?action

Thanks.
Title: Re: Remove Index.Php From URL
Post by: Hj Ahmad Rasyid Hj Ismail on December 09, 2011, 11:05:47 PM
It is in the OP or uninstall it.
Title: Re: Remove Index.Php From URL
Post by: InfoStrides on December 17, 2011, 04:35:40 AM
Quote from: ahrasis on December 09, 2011, 11:05:47 PM
It is in the OP or uninstall it.

What do you mean by OP? I already uninstall it.
Title: Re: RIPITP: Remove Index.Php In Three Places
Post by: Hj Ahmad Rasyid Hj Ismail on November 28, 2012, 11:27:56 PM
Updated. New version will only remove index.php in your forum url in three places only  i.e. in your forum name or image link, home menu button link and top linktree link. It should not have any problems with other mods except to some themes.

To update, remove old/previous version. Then install this new one.
Title: Re: Remove Index.Php Completely or In Three Places
Post by: Hj Ahmad Rasyid Hj Ismail on December 21, 2012, 04:42:12 AM
Quote from: The Burglar! on October 18, 2011, 04:24:23 PM

$scripturl = $boardurl . preg_replace('/index.php','?');

Implemented with thanks to your suggestion and improvement for this mod.
Title: Re: Remove Index.Php Completely or In Three Places
Post by: weerforum on December 21, 2012, 04:47:46 AM
Works perfect Ahmad Rasyid Ismail

Thnx  :D ;) ;D

Edit.......not working when i go to a board i see a white page
Title: Re: Remove Index.Php Completely or In Three Places
Post by: Herman's Mixen on December 21, 2012, 07:54:43 AM
This mod is developed to work with the Forums not to use with the SimpelPortal you use ;)
SimpelPortal needs some extra modification to work with this.

Quote from: Ahmad Rasyid Ismail on December 21, 2012, 04:42:12 AM
Implemented with thanks to your suggestion and improvement for this mod.

Nice too see that be welcome ;)
Title: Re: Remove Index.Php Completely or In Three Places
Post by: weerforum on December 21, 2012, 01:39:14 PM
Yes thnx The Burglar

I use simple portal
Title: Re: Remove Index.Php Completely or In Three Places
Post by: Chris180 on January 07, 2014, 05:33:27 PM
H.ARIS,

Thanks for making this mod.

The links provided both just link to ahrasis (dot com)

They dont point to a download. I am been searching that website you linked and it seems to have nothing to do with smf mods. Any help appreciated on this as I would like the remove the index.php to make my forums look more user friendly and tidy. I am using a custom skin so I can't follow the manual fix.
Title: Re: Remove Index.Php Completely or In Three Places
Post by: Arantor on January 07, 2014, 05:37:37 PM
Except it will cause other issues, the posted version - http://custom.simplemachines.org/mods/index.php?mod=2709 - has at least two bugs.
Title: Re: Remove Index.Php Completely or In Three Places
Post by: Chris180 on January 08, 2014, 01:41:55 PM
Woops, I was clicking on the wrong link :-S. I managed to install it, however the first one works, the second one (remove 3 links) doesn't work :(.

All I get now is - forumname/index.php?PHPSESSID=c1be342afdd5458376b2f089770b88af;wwwRedirect

no worries because the first one does the trick, but I just wanted to point out the remove 3 links one doesn't work.
Title: Re: Remove Index.Php Completely or In Three Places
Post by: Arantor on January 08, 2014, 02:15:39 PM
The second mod removes them from the three places it claims to do so.

Except the first mod does actually have bugs and I wouldn't be surprised if your error log is flooded with errors because the preg_replace expression is invalid.
Title: Re: Remove Index.Php Completely or In Three Places
Post by: Chris180 on January 08, 2014, 02:24:14 PM
Agh, I installed it and now I can't log into my admin area. What can I do? I just type in my password and nothing happens.  >:(

I'm sort of stuck right now, is there a way to manually remove this? Any ideas? Thanks. I removed the package from the packages folder but that did nothing. At least I think it's this mode because the forum was working fine before, and this is the only thing I have done to it today and now I can't log in.

edit: Just cleared my browser and now I can't even log in to my account.
Title: Re: Remove Index.Php Completely or In Three Places
Post by: Arantor on January 08, 2014, 02:27:31 PM
Removing it from the packages folder just made it impossible to use the package manager to uninstall.

Manual uninstallation is simply reversing the install instructions - it's a one line change, just do this in reverse: http://custom.simplemachines.org/mods/index.php?action=parse;mod=2709;attach=214323;smf_version=2.0.3
Title: Re: Remove Index.Php Completely or In Three Places
Post by: Chris180 on January 08, 2014, 02:30:11 PM
Quote from: Sir Cumber-Patcher on January 08, 2014, 02:27:31 PM
Removing it from the packages folder just made it impossible to use the package manager to uninstall.

Manual uninstallation is simply reversing the install instructions - it's a one line change, just do this in reverse: http://custom.simplemachines.org/mods/index.php?action=parse;mod=2709;attach=214323;smf_version=2.0.3

Thanks so much, that worked, you are amazing :). I'll re-try the 3 link url package again if you say it works then I believe you :).
Title: Re: Remove Index.Php Completely or In Three Places
Post by: Arantor on January 08, 2014, 02:31:12 PM
It does the job it claims to do, nothing more, but what you want isn't what it does. Doing what you want will cause trouble within the way SMF is constructed (and that isn't going to change in 2.x)
Title: Re: Remove Index.Php Completely or In Three Places
Post by: Chris180 on January 08, 2014, 02:49:45 PM
Quote from: Sir Cumber-Patcher on January 08, 2014, 02:31:12 PM
It does the job it claims to do, nothing more, but what you want isn't what it does. Doing what you want will cause trouble within the way SMF is constructed (and that isn't going to change in 2.x)

hmm, well there isn't a single smf forum I have seen yet that has the .index.php trail (except this one), so it surely can be done safely? It's so annoying.

I installed the 3 link package and now when I go to my forum instead of index.php I now get index.php?wwwRedirect

Are you sure you have tested it recently on the latest version? Because this is what i'm getting with this package :(.
Title: Re: Remove Index.Php Completely or In Three Places
Post by: Arantor on January 08, 2014, 02:53:43 PM
Except every single forum in the base package does it, with plenty of good reasons.

The wwwRedirect is because the forum is configured to use www in the address but you tried to access it without www in the address (or vice versa, it's configured not to but you used it)

I didn't even have to test it, I can see from the code that it's physically invalid even before I attempt to install it, but I also know exactly what's changed in SMF over the years with respect to how URL detection works. I'm not carrying a Developer badge for nothing ;)

It's simply not safe to do in SMF because of how SMF handles certain things, namely session reinjection for search engines.
Title: Re: Remove Index.Php Completely or In Three Places
Post by: Chris180 on January 08, 2014, 03:02:43 PM
Ok thanks for the explanation :). I hope such thing could be possible in the future, but for now I would rather have the latest software installed with the index trail over a base package without it :). Not too big of a deal I guess, I am just a bit OCD with these things.
Title: Re: Remove Index.Php Completely or In Three Places
Post by: Hj Ahmad Rasyid Hj Ismail on July 17, 2014, 01:40:13 PM
Quote from: Chris180 on January 08, 2014, 03:02:43 PM
Ok thanks for the explanation :). I hope such thing could be possible in the future, but for now I would rather have the latest software installed with the index trail over a base package without it :). Not too big of a deal I guess, I am just a bit OCD with these things.

Yes. This mod is actually no big deal. It was a matter of packaging a simple tip and trick that worked in the past but failed to work properly after SMF has further developed.

I have returned to find the best way to accommodate this and find that the only easiest way to this is via htaccess rewrite. As such, I have learned and developed a new approach to install the said working code into your current htaccess file.

I have tested to be working on both SMF version 1.1.x and 2.0.x.

Though it will depends on each individual forum server, all I can say is, it finally works in SMF.

Thank you for all responses and feedbacks. You may now download and enjoy the latest RIPC for all versions in the mod page.
Title: Re: Remove Index.Php Completely or In Three Places
Post by: Arantor on July 17, 2014, 01:41:01 PM
So are you going to edit the PHPSESSID injector this time?
Title: Re: Remove Index.Php Completely or In Three Places
Post by: Kindred on July 17, 2014, 01:43:16 PM
I will also post a note here:  We have ended up having to provide support to a bunch of site that seem to think thise was a good idea (note, it is not)

While it may seem to work with a basic installation (although Aranator's comments suggest that even that will have issues)
MANY other mods will fail if you are using this...     and quite honestly, it serves no useful purpose, really...
Title: Re: RIPC/RIPTP: Remove Index.Php Completely Or In Three Places From URL
Post by: Hj Ahmad Rasyid Hj Ismail on July 17, 2014, 01:49:40 PM
Thank you for the feedback. And no further comment. :)
Title: Re: RIPC/RIPTP: Remove Index.Php Completely Or In Three Places From URL
Post by: Arantor on July 17, 2014, 01:52:02 PM
So in answer to my question, that means the answer is no, which means it is still going to break as it always has done.
Title: Re: RIPC: Remove Index.Php Completely From URL for SEO For SMF 2.0.x & 1.1.x
Post by: Hj Ahmad Rasyid Hj Ismail on July 22, 2014, 10:29:11 PM
Do report if your forum(s) breaks using this mod.
Title: Re: RIPC: Remove Index.Php Completely From URL for SEO For SMF 2.0.x & 1.1.x
Post by: Biology Forums on August 05, 2014, 04:30:52 PM
Is there a benefit to this mod?
Title: Re: RIPC: Remove Index.Php Completely From URL for SEO For SMF 2.0.x & 1.1.x
Post by: Kindred on August 05, 2014, 04:34:19 PM
no. there definitely is no benefit to removing the index.php from the URL -- and there is a potential for issues with the site, especially mods
Title: Re: RIPC: Remove Index.Php Completely From URL for SEO
Post by: Hj Ahmad Rasyid Hj Ismail on December 19, 2014, 02:37:49 AM
This mod has been used in http://anypost.qom.my, my mods' test site with even subforum mod installed and running. So far, it has no issues until today. It may not be useful to many, but really, so far, it has no issues at all.
Title: Re: RIPC: Remove Index.Php Completely From URL for SEO
Post by: Arantor on December 19, 2014, 03:16:54 AM
Loads without the theme for me.
Title: Re: RIPC: Remove Index.Php Completely From URL for SEO
Post by: Schattian on February 12, 2015, 03:14:21 PM
I have an error, this mod wheni go to index redirected me to the same page without index.php, good BUT when i click in a button of index the mod redirect me to my main page, no index of the forum, to my page (jskdakj . com) and i want to uninstall it but i cant because i deleted all in FTP and removed my database AND THE SAME! :S Please respond

SRY BAD ENG
Title: Re: RIPC: Remove Index.Php Completely From URL for SEO
Post by: Kindred on February 12, 2015, 03:23:53 PM
manually put the mod archive file back in the packages directory and you should be able to uninstall it.
Title: Re: RIPC: Remove Index.Php Completely From URL for SEO
Post by: Hj Ahmad Rasyid Hj Ismail on February 14, 2015, 11:46:21 AM
This mod is changing only .htaccess file (and depending on it too). Only need to restore that file to restore your forum.
Title: Re: RIPC: Remove Index.Php Completely From URL for SEO
Post by: Jakkie on July 08, 2015, 11:04:19 AM
Hi Ahrasis,

Im new to SMF and modifications to it. I want to remove the index part from the URL and downloaded your mod. Im not sure how to install/activate it in my SMF? Im runnig version 2.0. Where do I put the mod and how do I execute it to be installed?

Thanks,
J
Title: Re: RIPC: Remove Index.Php Completely From URL for SEO
Post by: Xpresskonami on December 22, 2018, 08:20:29 AM
This mod has affect my forum canonical url, google has been detecting url.com/index.php and url.com and it has been decreasing my site rank and index status. please how can i fixed this. some of my topics brings url.com/index.php but if i later click on it, the index.php is not showing again.

example: if you drag mouse on this url before you click it will show this http://www.spyloadedng.com/index.php?board=1.0 and after you click it. it change it to this http://www.spyloadedng.com/?board=1.0 and i try to use pretty urls, it work well without showing index.php but google has never get the real canonical url of my forum....
Title: Re: RIPC: Remove Index.Php Completely From URL for SEO
Post by: Kindred on December 22, 2018, 08:44:18 AM
Uninstall...   seriously, I don't know why anyone would ever do this. It causes all sorts of trouble for little, if any benefit