Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: SleePy on July 21, 2007, 06:40:42 AM

Title: Override SEF Checks
Post by: SleePy on July 21, 2007, 06:40:42 AM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=867)

This Mod is intended for those who are unable to use SEF URLS because of checks that fail but are still able to use urls such as http://yoursite.com/forum/index.php/board,1.0.html

Make sure that urls such as http://yoursite.com/forum/index.php/board,1.0.html work on your site before enabling this option! This can cause your forum to not work. If you do happen to enable this option and it does not work on your forum you can fix this temporally until you can shut the option off by adding this to your Settings.php:
$disable_sef = true;

You can Enable the Override Option in
Admin -> Features and Options
You will find it right below the "Search engine friendly URLs" Option.
Title: Re: Override SEF Checks
Post by: Daniel15 on July 21, 2007, 06:45:04 AM
QuoteThis Mod is intended for those who are unable to use SEF URLS because of checks that fail
Basically, if your web host is running PHP as a CGI application, it is sometimes misconfigured (and SMF thinks that the friendly URLs will not work). If SMF thinks that the friendly URLs will not work, it will not use them. This mod allows you to bypass this check :)

Title: Re: Override SEF Checks
Post by: L.G.S on July 22, 2007, 03:33:59 PM
Sleepy you just saved my life :( :)
Title: Re: Override SEF Checks
Post by: Daniel15 on July 23, 2007, 06:55:13 AM
Quote from: L.G.S on July 22, 2007, 03:33:59 PM
Sleepy you just saved my life :( :)
Why the sad *and* smiley face? Mixed reactions? :P
Title: Re: Override SEF Checks
Post by: L.G.S on July 23, 2007, 09:52:16 AM
Cos I almost cried lol. Three weeks almost of my host not taking in a word I tell them got real heavy
Title: Re: Override SEF Checks
Post by: cru on July 23, 2007, 10:02:23 AM
is this something like prettyURL?
Title: Re: Override SEF Checks
Post by: SleePy on July 23, 2007, 11:19:04 AM
Quote from: cru on July 23, 2007, 10:02:23 AM
is this something like prettyURL?

This is the default built in SEF Urls SMF has but does not work on all server setups. This ignores the checks for the few who it still works even though the checks SMF performs says it can not do SEF Urls.
Title: Re: Override SEF Checks
Post by: L.G.S on July 23, 2007, 03:44:54 PM
Hey I don't know if its your mod or what but I might as well ask.

I have the mod installed alongside SEO4SMF (I ask here because support for this mod takes days) and when I post in a topic, it always takes myself and my members to the first page of the topic, not their new post.

Any idea what's causing this?
Title: Re: Override SEF Checks
Post by: SleePy on July 23, 2007, 05:29:46 PM
That I believe is a problem with SEO4SMF
My mod doesn't make SEF urls just uses the SMF default SEF urls ;)
Title: Re: Override SEF Checks
Post by: forty on July 27, 2007, 03:16:23 AM
hi sleepy i just installed Override SEF Checks with v1.1.3 and can see that links changed  to the static link but when i click on the link it shows this note.

"No input file specified."

heres my setting

Search engine friendly URLs      =   Checked
Apache only!

Disable SEF Checks.                   =   Cheked
WARNING!: May cause SMF to fail to load, If this occurs add "$disable_sef = true;" to your Settings.php

im with dreamhost and someone told me that mod_rewrite is enabled by default.
what should i do? i installed smf 4 times already.
Title: Re: Override SEF Checks
Post by: SleePy on July 27, 2007, 03:04:21 PM
I am going to assume you are running php as CGI.
try to set cgi.fix_pathinfo in your php.ini and see if this fixes it.

If that doesn't then you are unable to use SEF at all on the server/setup you have.
Title: Re: Override SEF Checks
Post by: Daniel15 on July 27, 2007, 09:45:35 PM
forty, that sounds like a problem with your web host rather than a problem with SMF. As SleePy said, get them to check the fix_pathinfo setting (or if you have your own php.ini, set it to "1" in there).
Title: Re: Override SEF Checks
Post by: masss on August 18, 2007, 01:05:13 PM
i have installed this mod but now almost nothing is working (but finally SEO4SMF is almost working :D). What can i do? Where is the problem?

Link: http://www.spletka.org/smftest/index.php (chack Help, Search..nothing is working)


It  seems now finaaaaaaaaaaly SEO4SMF works!!!! I cant' belive it!!!! OMG!!!!!! OMG!!!!!!!! :P :P  :D :D :D :D :D :D :D :D
Title: Re: Override SEF Checks
Post by: wilsy on November 25, 2007, 07:41:32 PM
I know SEF friendly url's work on my server (siteground) but they wont activate normally and this mod doesnt solve the problem.

I'm desperate to improve my search engine rankings - FTP/admin access to Sleepy or Daniel if they would have time to take a look? ;)

Sorry to be a pain guys, just spent another day trying without success :(

Regards,

Wilsy.
Title: Re: Override SEF Checks
Post by: SleePy on November 26, 2007, 01:52:49 AM
The urls work if you manually put them in?

Are you sure the edits where made? Meaning does the uninstall pass?
Title: Re: Override SEF Checks
Post by: wilsy on November 26, 2007, 08:43:18 AM
Hi Sleepy,

I had the sef url's working temporarily by amending the .htaccess file and editing a line of code in querystring.php - then I installed seo4smf and it screwed everything. I cant now remember what I did to the .htaccess or querystring.php file to make the sef url's work (but they definitely did!) :(

The edits worked as they installed and uninstalled just fine - would you take a look? ...theres a virtual beer in it for you and you would have a friend for life! ;)

Regards,

Wilsy.
Title: Re: Override SEF Checks
Post by: SleePy on November 26, 2007, 02:10:46 PM
SEO4SMF is a complete different mod.

My mod overrides the default SMF checks for the built-in SEF features in SMF.
Title: Re: Override SEF Checks
Post by: wilsy on November 26, 2007, 02:15:27 PM
Hi Sleepy,

I understand that. I think I may have put it badly (:

Basically I know that the SEF friendly URL's work on my server as they have done so before, although I had to perform a workaround to get them to function. I have installed your mod with no problems but the sef friendly url's still dont work :(

Regards,

Rick.
Title: Re: Override SEF Checks
Post by: SleePy on November 26, 2007, 02:22:17 PM
Did you enable the option?
It adds a new option next to your SEF settings to override the checks.
Title: Re: Override SEF Checks
Post by: wilsy on November 26, 2007, 03:58:00 PM
Yes, I enabled it and it did make the links change but when you clicked on them they were dead links.

Regards,

Wilsy.
Title: Re: Override SEF Checks
Post by: wilsy on November 27, 2007, 04:32:27 AM
Solved - it was seo4smf that was causing the problems - thanks Sleepy - top mod!

Regards,

Wilsy.
Title: Re: Override SEF Checks
Post by: Marcus J on April 26, 2008, 03:21:39 AM
Just wanted to say thank you!  I installed this mod after much fighting with my host, and POW SEF works on my site. 

First try, no fuss.  I can't thank you enough.
Title: Re: Override SEF Checks
Post by: City Builder on May 06, 2008, 03:57:37 PM
When I click on the little ? icon Im told this:
QuoteThis changes the format of URLs a little so search engines will like them better. They will look like index.php/topic,1.html.

This feature will not work on your server.

But it is working on my forum when I use the SEF Url's as they are showing up as the SEF urls should.  Is this something that I should still install because if SMF says it's not working on my server  *but it looks to me like it is*, then maybe theres something behind the scenes that isn't working as it should be and thus I need to install this mod to get full functionality out of the SMF's SEF urls?
Title: Re: Override SEF Checks
Post by: SleePy on May 06, 2008, 04:23:35 PM
If the SEF urls work by manually typing them in then they will most likely work.
This just removes the checks SMF does to prevent accidental use of the SEF checks (in case you check it anyways). That message won't change because of this mod.
Title: Re: Override SEF Checks
Post by: beltazar on March 03, 2010, 01:34:17 PM
i use pretty url, should i use this mod too ?
Title: Re: Override SEF Checks
Post by: SleePy on March 05, 2010, 10:22:22 PM
No, this mod will not play well with Pretty URLs or SimpleSEF.