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: 43261
Total Topics: 7519
Most Online Today: 297
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 2
Guests: 296
Total: 298

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - drewactual

Pages: [1] 2 3
1
Pretty Urls / Re: How to AVOID SEO Hit when Implementing PrettyURLs
« on: September 12, 2019, 08:46:08 pm »
to add:  your messages and threads are in constant flux, so I wouldn't worry about having google re-index individual pages UNLESS you have one thread that generates a lot of interest from search engines...

i WOULD, however, recommend you re-index each board. 

2
Pretty Urls / How to AVOID SEO Hit when Implementing PrettyURLs
« on: September 12, 2019, 08:44:28 pm »
i thought i'd post this here, too, just as it was posted at SMF support... I think it may take some of the trepidation out of purchasing this fine product for forum users that are worried about initial hit to SEO when implementing PrettyURL's.

here it is:

here is a little bit of a public service announcement.. regarding PrettyURL's and SEO for forums installing PrettyURLS that have been established for some time, and sites that are concerned with ranking or visibility....

I've been running PrettyURL's for a while... most pages have bounced back in the rankings after making the change.  Some haven't, though, and those pages using the old patter url ( ?board= ) still rank higher than the 'new' ones.

well, i'm an idiot for not doing this sooner.  I don't know if i'm an idiot alone, or if there are a bunch of us- but i'm sharing this to help everyone who's made the change and are perhaps still waiting, as i was, for there forum to 'recover' in the ranks...

this is SO simple.

go to your google console.  inspect url... type in the OLD url ( ?board= )... inspect it- your htaccess will see the the incoming request and shove it through the prettyURL rewrites hiding out in your htaccess, and send google to the same page that is using PrettyURLs.. confirm it is indexed, searchable/can be crawled... and... hit the "webpage has changed" button and request a new index...

that freakin' simple... meta descriptions, OG tags, and my particular implementation of H1's, 2's, and 3's- that i've been waiting forever for google to get around to- were changed to reflect the new pages (using the old links) almost instantly.

the only thing that may cause an issue is canonical...

make certain and have "index.php?board=" 'allowed' in your robots.txt.  whaplappahpoo- you'll be good in minutes using the same links you were ranking with prior to implementing prettyURLS... i was amazed at how fast it took hold.  and hopefully, since perhaps you're reading this, is there a way you can implement, in a future release, websites being approached using the 'old' url structure to either 302 to the new one and/or a code to strip 'canonical' out of the 'old' structure?

Thanks for your work, Sir.. it's worked out well for me.

good luck!

VB- I know you likely know this^, but.... perhaps you can add it to your readme or something for new users?  methinks it may remove a lot of the trepidation out of using your product.

3
"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... 

4
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!!!

5
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.

6
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.

7
I'm thinking it has to do with the <directory> and perhaps the base... which should remedy the rewrite rearrangement, no?

8
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. 

9
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. 

10
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.   


11
dang, man... I hope you make a lot of money off this enterprise of yours, because you've got your freakin' act together, Sir... Outstanding support on a great product, and many thanks.

12
SMF is at my top level directory- i have a publisher function, and a store which are subdirectories... What setting in PrettyURL's do I use to be able to navigate to those directories again?  Currently, it's just cycling back to the boardindex/home page.

I suppose it has something to do with 'skip actions list', but i've not the foggiest how to use it...

and help would be appreciated.

13
i'll hit that up this eve when the traffic fades.... many thanks once again!

14
it's up and running, and doing a great job!!!!

just if anyone else happens along to see this, here are a few things:

- my instance of SMF2.0.15 is highly customized, and i make liberal use of includes into various places.  for whatever reason the include files were okay, but the images within were NOT.... so.... i had to go through them and give a full path to the images (not .././image, but https://image) ... i also had to do the same thing with js and css.  not a big deal- all the time i've spent organizing the site came in handy at this point, and paid off.  in an 'out of the box' instance it should be even easier.

- i found the cache option for pretty url's not a little slower than the db but a LOT.  i reckon YMMV, so- play with it. 

- i WAS on SMF cache level2 with memcached, and i also run OPCache.  with PrettyURL's running atop that, the site's benchmark dropped from an average DOM load of .8seconds to a touch over 3 seconds.  I bumped up to level3 cache and i'm back in the sub-second class again.

AWESOME MOD!!!! many thanks, Sir VBG.

15
nope... i got it.  i was looking right past it every SINGLE time...

i've cleared all the files so that the installer will work.  man, that old version i had was buried in like a tic.  for whatever reason my site is exceptionally busy for late on a tuesday eve, but as soon as it clears a bit i'm installing...

in the meantime:

Q: i realize now the pages can still be found using the SMF inherit link structure, but.... will the 'new' pages (with pretty URLs) append as 'new' pages on search indexes?  I'm guessing a sitemap may grant me a 'get out of jail free' card if it does, but i'm thinking it'll be better if it doesn't....

Pages: [1] 2 3

+- Recent Topics

Problems SMF 2.0.19 > 2.1.4 SMF Gallery Pro - Recents Images to overall header by Michel68
Today at 08:27:36 am

No thumbnails on new uploads by Tonyvic
Today at 06:26:18 am

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

Powered by EzPortal