Pretty URLs

Started by SMFHacks.com Team, January 31, 2007, 10:56:43 AM

Previous topic - Next topic

Xpresskonami

Quote from: vbgamer45 on February 02, 2020, 11:22:14 AM
If you are on SMF 2.0.
Copy this file to Sources folder and see if it helps...

Thanks Vbgamer45, The file works for my forum. No more "Error" when i added attachment to post

vbgamer45

Great will push the change out for next update.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

SMFHacks.com Team

2.2
!Added a fix for attachment memory limit. We no longer process prettyurl filters on post2 action
Disclaimer: SMFHacks.com Team is not affiliated with the SMF Team or the SimpleMachines NPO.
SMFHacks.com -  Paid Modifications for SMF
Latest Mods:
Community Suite
Newsletter Pro SMF Gallery Pro SMF Classifieds SMF Store

Poshnjari

Quote from: GigaWatt on May 29, 2018, 08:23:50 PM
Try this.

Code (Subs-PrettyUrls.php) Select
'-' => array ('-', ' ', '.', ',', "'", '"', '`', '(', ')', '[', ']'),
'_'   =>   array ('_'),
'!'   =>   array ('!'),
'~'   =>   array ('~'),
'*'   =>   array ('*'),
"\x12"   =>   array ("'", '"'),
// '('   =>   array ('(', '{', '['),
// ')'   =>   array (')', '}', ']'),

How to add this please?

vbgamer45

Add it to your Sources/Subs-PrettyUrls.php file
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

magicbus

I'm sure this has already been answered amongst the 396 pages of comments on this mod - but so far I've not found it. hope someone can help, or link me to a previous answer

My main webpage (not my forum) shows a section of 'latest forum posts' to direct people to the forum. Easy enough before using pretty urls. I just looked up latest message posts with MySQL and created links on the fly, using the usual format.

But now I am using pretty urls this seems less easy. Obviously the old links still work, but from an seo point of view, i'd like the correct pretty link to show on my webpage rather than the 'topic= ' method.

I see the 'smf_pretty_urls_cache' table in the database. But how would I go about joining that data to the messages table? thanks in advance


vbgamer45

Generally this PHP code rewrites the urls. If you include SMF's SSI

// Rewrite the buffer with Pretty URLs!
if (!empty($modSettings['pretty_enable_filters']))
{
require_once($sourcedir . '/PrettyUrls-Filters.php');
$buffer = pretty_rewrite_buffer($buffer);
}
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Xpresskonami

Please i discovered low indexing from my google webmaster tools. i tried to check the search performance and i see my forum pretty url stop working on sitemap.xml

All my submitted topic and board has now change from www.url.com/this-is-my-forum/ to www.url.com/index.php?topic=143.0 And my pretty url is working fine on my website. How can i fix this??

vbgamer45

What mod made the sitemap.xml?
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Xpresskonami

Quote from: vbgamer45 on February 23, 2020, 12:38:47 AM
What mod made the sitemap.xml?

Open brave is what i saw at the bottom of the sitemap.xml

vbgamer45

The mod that generates the sitemap would need to be updated to add support for pretty urls.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Xpresskonami

Quote from: vbgamer45 on February 23, 2020, 02:13:12 AM
The mod that generates the sitemap would need to be updated to add support for pretty urls.

Is the new version for the mod available?? i mean the "Optimus Brave" or not yet

Xpresskonami

Quote from: vbgamer45 on February 23, 2020, 02:13:12 AM
The mod that generates the sitemap would need to be updated to add support for pretty urls.

i install the latest update of the "optimus brave" and my website gone blank. only www.url/admin is working other topic , homepage, boards are showing blank page

And after i uninstall the latest mod back. the forum is working fine. is the new version not working with my smf 2.0.17 ??

vbgamer45

That would be a question for optimus brave support topic
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Xpresskonami

Quote from: vbgamer45 on February 23, 2020, 09:09:09 AM
That would be a question for optimus brave support topic

I have raised the issue on "Open Brave" support topic. The problem and the optimus brave 2.3 now working well. But the sitemap pretty url issue not fix yet.

My forum pretty url is not working on sitemap, it only works on the website forum. I tried to uninstall and reinstall the pretty url, still not rewriting the url.

I c

vbgamer45

The sitemap isn't part of this mod so that would be an optimus brave issue.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Bobby

Quote from: Xpresskonami on February 23, 2020, 02:02:45 PM
Quote from: vbgamer45 on February 23, 2020, 09:09:09 AM
That would be a question for optimus brave support topic

I have raised the issue on "Open Brave" support topic. The problem and the optimus brave 2.3 now working well. But the sitemap pretty url issue not fix yet.

My forum pretty url is not working on sitemap, it only works on the website forum. I tried to uninstall and reinstall the pretty url, still not rewriting the url.

I c

Hi, I'm using Optimus Brave mod, too. The link yourforum.com/sitemap.xml is a file which generated by scheduled tasks, it's not an URL index. And you just add it on Google Webmaster Tool!

smartmouse

Hello, I'm on SMF 2.0.17 and I have moved my forum to another hosting... and now I'm experiencing some problems loading images in the topbar.
I have already fixed the settings using "repair_settings.php" file.

I have the following errors in the browser console:

Uncaught SyntaxError: Unexpected token '&'
(index):1 Mixed Content: The page at 'https://www.mywebsite.com/comunicazioni-ed-eventi/' was loaded over HTTPS, but requested an insecure image 'http://www.mywebsite.com/Themes/default/images/LOGO.jpg'. This content should also be served over HTTPS.
theme.js?fin20:112 Mobile
(index):1 Access to font at 'https://mywebsite.com/Themes/NightBreeze20/webfonts/fa-solid-900.woff2' from origin 'https://www.mywebsite.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
(index):496 GET https://mywebsite.com/Themes/NightBreeze20/webfonts/fa-solid-900.woff2 net::ERR_FAILED
(index):1 Access to font at 'https://mywebsite.com/Themes/NightBreeze20/webfonts/fa-solid-900.woff' from origin 'https://www.mywebsite.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
(index):1 GET https://mywebsite.com/Themes/NightBreeze20/webfonts/fa-solid-900.woff net::ERR_FAILED
(index):1 Access to font at 'https://mywebsite.com/Themes/NightBreeze20/webfonts/fa-solid-900.ttf' from origin 'https://www.mywebsite.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
(index):1 GET https://mywebsite.com/Themes/NightBreeze20/webfonts/fa-solid-900.ttf net::ERR_FAILED


My forum is the following: https://www.mon*ywant*rsforum.com (* = e).
As you can see images in the topbar are propertly loaded only when you are in the home page. Any other pages can't load images.

I see that if I temporary uninstall Pretty URLs I haven't the problem. So, what could be wrong with Pretty URLs?

Thank you.

vbgamer45

You might have relative images paths instead of full url such as /images/

The errrors in your log needs to be fixed by changing to https:// for links and setting a cross orgin policy
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

smartmouse

Quote from: vbgamer45 on February 28, 2020, 09:19:18 AM
You might have relative images paths instead of full url such as /images/

The errrors in your log needs to be fixed by changing to https:// for links and setting a cross orgin policy
What has been changed since moving from my previous host? Where do I change https:// for those links and where can I see the cross origin policy?

Advertisement: