Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43259
Total Topics: 7518
Most Online Today: 201
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 183
Total: 183

Author Topic: Pretty URLs 2.0.15 forum with >115k posts in just under 8k threads  (Read 9778 times)

0 Members and 1 Guest are viewing this topic.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Pretty URLs 2.0.15 forum with >115k posts in just under 8k threads
« Reply #15 on: April 05, 2019, 01:57:43 pm »
Off my marketing companies yeah. This site for SMF is mostly for fun the big years were from like 2006 to 2008.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline drewactual

  • Member
  • *
  • Posts: 43
    • View Profile
Re: Pretty URLs 2.0.15 forum with >115k posts in just under 8k threads
« Reply #16 on: April 05, 2019, 02:02:51 pm »
well keep it up...

I get humored by folks who believe they can 'turn it on' when they want or when they feel and opportunity approaching only to find out they cannot.  if you 'got' it, it's on 100% of the time in all your endeavors- and this is apparent with your product and the care you give you're afflicted.  it's a blessing and a curse, no?

cheers, Sir.   


Offline drewactual

  • Member
  • *
  • Posts: 43
    • View Profile
Re: Pretty URLs 2.0.15 forum with >115k posts in just under 8k threads
« Reply #17 on: April 06, 2019, 08:27:40 pm »
If i move all directives to the httpd.conf file, is this going to put the freak on prettyurls? 

I don't anticipate altering the htaccess again insofar as this mod is concerned... for performance and security reasons, i'm thinking this is something i want to do, but not if it will hurt prettyurls. 

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Pretty URLs 2.0.15 forum with >115k posts in just under 8k threads
« Reply #18 on: April 06, 2019, 08:47:31 pm »
Nah it's fine you can keep in either.
Yeah httpd conf file faster so you can skip .htaccess files.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline drewactual

  • Member
  • *
  • Posts: 43
    • View Profile
Re: Pretty URLs 2.0.15 forum with >115k posts in just under 8k threads
« Reply #19 on: April 07, 2019, 12:32:29 pm »
getting 404's after the move of rules to httpd... the URL's work (it exchanges them in address bar), so I' thinking this is something with the mapping and the db?

Is the procedure to simply turn PrettyURL's OFF and then back on?  what am I missing?  ......... it's gotta be simple. 

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline drewactual

  • Member
  • *
  • Posts: 43
    • View Profile
Re: Pretty URLs 2.0.15 forum with >115k posts in just under 8k threads
« Reply #21 on: April 07, 2019, 09:29:48 pm »
I'm thinking it has to do with the <directory> and perhaps the base... which should remedy the rewrite rearrangement, no?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Pretty URLs 2.0.15 forum with >115k posts in just under 8k threads
« Reply #22 on: April 07, 2019, 10:39:53 pm »
Maybe I had an issue on a different system/site a long time ago I not really sure what I did to fix.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline drewactual

  • Member
  • *
  • Posts: 43
    • View Profile
Re: Pretty URLs 2.0.15 forum with >115k posts in just under 8k threads
« Reply #23 on: April 08, 2019, 07:16:09 am »
by the way.. My base is already written in the manner offered by the link.  However, I've noticed the offer in the mod's settings to set the 'base', and i have the site's full URL in there...

...If i were to enter "/" instead, what would happen?

I'm thinking it will just look for an htaccess north of the forum's?  Or..... ???

thanks, and I really appreciate the help.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Pretty URLs 2.0.15 forum with >115k posts in just under 8k threads
« Reply #24 on: April 08, 2019, 07:24:43 am »
My default base
RewriteBase /

That works as long as your forum is not in a sub directory.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline drewactual

  • Member
  • *
  • Posts: 43
    • View Profile
Re: Pretty URLs 2.0.15 forum with >115k posts in just under 8k threads
« Reply #25 on: April 08, 2019, 10:49:35 am »
i'm befuddled...

the rules work, as they're drafted and implemented into httpd.conf/includes/userdata/blahblahblah directory, and they take affect in the forum (it translates both to and from; e.g. /index.php?mssgid=xxxx OR /prettyboard/prettymessage.. meaning if i approach the page using either of those request after shutting down htaccess it will render with the pretty url, and a not so pretty custom 404.  (not custom through prettyurl's but done server side). 

all other directives in the httpd.conf file are working as expected.

so, it isn't the rewrite that's whiffing.  it's something to do within SMF or the db. 

^entertaining that, I've turned rewrites off using the admin panel, changed the name of htaccess (rendering it useless), turned it back on (and changed the updated htaccess's name to render it useless too) and made certain the code in the system's drafted htaccess matched the code/directives in my httpd.conf, and then dumped the site's cache... and.... no dice.  404's. 

it's the same whether i use cache or db pulls for the function (but I haven't tested your alternative code from a page back yet). 


....... so... here is what i'm going to do, but i'll have to wait until the little hours to pull it off (traffic dies).  This may be a solution for anyone else considering moving from htaccess to httpd.conf exclusively.

Quote
There is a command valid in httpd.conf that allows htaccess to be shut down site wide, but to use a SINGLE additional directive file (you can name it whatever you want, or you can still use the name .htacess if you want)...

I'll keep it titled ".htaccess" with the intent to maintain continuity with the mod specifications/script which looks for that file (to write the rewrites). 

I'll also pull out of the httpd.conf files anything to do with prettyurl's. 

the intent is to retain all the function of htaccess while NOT allowing apache to parse the entire directory tree for other .htaccess's.

in theory, i don't see how this can fail- you still get the benefit of increased performance because it isn't searching public_html (or even above) for htaccess... just that single one. 

thoughts?

Thank you again for your interest in helping me out- and i hope this helps others out too.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Pretty URLs 2.0.15 forum with >115k posts in just under 8k threads
« Reply #26 on: April 08, 2019, 05:27:10 pm »
Yes that's what I do for some sites.
Just parse the one .htaccess for the main site and not any sub directories.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline drewactual

  • Member
  • *
  • Posts: 43
    • View Profile
Re: Pretty URLs 2.0.15 forum with >115k posts in just under 8k threads
« Reply #27 on: April 08, 2019, 11:46:06 pm »
it works like a charm. 

every other rule worked in httpd.conf, just not the various rewrites.... so as i suggested the server is set up to look for ONE htaccess file, and the only thing in that file pertains to prettyurls.  all other rules, again, are from httpd.conf...

however... after all of this was done i had to fix the redirects to the publisher and store- and scratched my head as to why... within that answer is the reason this gave me so much trouble.... option MultiView.  grrrrrr....

it's good now though. 

thanks for your help!!!

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Pretty URLs 2.0.15 forum with >115k posts in just under 8k threads
« Reply #28 on: April 09, 2019, 11:47:33 am »
Glad to help
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline drewactual

  • Member
  • *
  • Posts: 43
    • View Profile
Re: Pretty URLs 2.0.15 forum with >115k posts in just under 8k threads
« Reply #29 on: April 10, 2019, 12:58:59 am »
"skip actions list"... can you give me an example so i can identify the syntax used?  i'm thinking this mod is making alerts cough a bit and that is where to fix it... 

 

Related Topics

  Subject / Started by Replies Last post
4 Replies
6371 Views
Last post September 11, 2010, 06:21:10 am
by Wickedgood
4 Replies
6073 Views
Last post December 13, 2010, 07:05:12 pm
by SMFHacks
12 Replies
8930 Views
Last post April 07, 2012, 08:25:21 am
by SMFHacks
2 Replies
9165 Views
Last post June 21, 2012, 08:16:38 am
by mjindustry
7 Replies
4236 Views
Last post March 07, 2019, 11:23:09 pm
by SMFHacks

+- Recent Topics

No thumbnails on new uploads by SMFHacks
March 27, 2024, 02:10:41 pm

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

Powered by EzPortal