Facebook 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4291
Latest: Robertqt
New This Month: 5
New This Week: 0
New Today: 0
Stats
Total Posts: 43747
Total Topics: 7590
Most Online Today: 81
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 56
Total: 56

Author Topic: Pretty URL's Pro support/help  (Read 480 times)

0 Members and 1 Guest are viewing this topic.

Offline [chrisB]

  • Pretty Urls SEO Pro
  • Member
  • *****
  • Posts: 41
    • View Profile
Pretty URL's Pro support/help
« on: February 25, 2025, 11:06:18 am »

I have SMF 2.1.3 and TinyPortal 3.0.1.

I originally had SMF in the root folder, but I have moved it into a 'community' folder as I would prefer to use TinyPortal's standalone feature so that my URLs are as follows.


Edit-

I restored a backup, as I think it makes more sense to keep SMF in the root. I just need to figure out how to improve the URl's

poetryartonline.com <- Tiny Portal
poetryartonline.com/forum/ <- SMF forum

With TinyPortal and Pretty URLs Pro enabled.

I can't alter the .htaccess file to suit my preferences.

I don't currently have the Pretty URLs Pro enabled, but when it is, my forums URL becomes:
https://poetryartonline.com/community/forum/

I can't figure out how to remove the /forum/

Board and Catergory URL's do not have /forum/ but they do have "//"

Which is something else I can't remove.

I did manage to remove 'pages' from Tiny Portal's URLs, but I wasn't able to do it without encountering issues.

However, now my setup is inside a folder. The URLs become: https://poetryartonline.com/community/index.php?cat=5

With TinyPortal I wouldn't want /community/ to show, but for the category name.

poetryartonline.com/articles/
poetryartonline.com/news/

etc

It's worth noting I am on Pretty URLs Pro 2.0.5.

Is this possible?
« Last Edit: February 25, 2025, 11:26:54 am by [chrisB] »

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16654
    • View Profile
Re: Pretty URL's Pro support/help
« Reply #1 on: February 25, 2025, 01:08:46 pm »
Are you using pretty urls right now on your site?
is https://poetryartonline.com/community where your forum installed

and
https://poetryartonline.com/ is standalone tinyportal?

Now is Tinyportal making these urls?
poetryartonline.com/articles/
poetryartonline.com/news/
Or is that from pretty urls?
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/
Agree Agree x 1 View List

Offline [chrisB]

  • Pretty Urls SEO Pro
  • Member
  • *****
  • Posts: 41
    • View Profile
Re: Pretty URL's Pro support/help
« Reply #2 on: February 25, 2025, 02:54:55 pm »
Everything now is in my root folder; TinyPortal doesn't change the URLs to friendly versions. Pretty URLs Pro is the one responsible for this feature, and it's now activated. I restored a backup of the site.

There's something forcing /forum/ to be the URL for my board's index page.
https://poetryartonline.com/forum/

I am not sure why this shows an empty page: https://poetryartonline.com/community/

Maybe it's due to my .htaccess edits.

I also can't change the TinyPortal categories to become FURLs (pretty urls).

For example
https://poetryartonline.com/index.php?cat=Features
Also, has https://poetryartonline.com/index.php?cat=8

Would both need targetting?

Like this: (I haven't tried because the last time I did, it broke all the URL's and I had to use a backup of the htaccess).
Code: [Select]
# TinyPortal Categories (using numeric IDs)
RewriteRule ^news/?$ ./index.php?pretty;cat=4 [L,QSA]
RewriteRule ^tips/?$ ./index.php?pretty;cat=5 [L,QSA]
RewriteRule ^general/?$ ./index.php?pretty;cat=6 [L,QSA]
RewriteRule ^showcase/?$ ./index.php?pretty;cat=7 [L,QSA]
RewriteRule ^features/?$ ./index.php?pretty;cat=8 [L,QSA]
RewriteRule ^interviews/?$ ./index.php?pretty;cat=9 [L,QSA]

# TinyPortal Categories (using Category Names)
RewriteRule ^([A-Za-z]+)/?$ ./index.php?pretty;cat=${lowercase:$1|${lc:$1}}

-Edit-
I have managed to sort the pages out. They now rewrite to the following:
https://poetryartonline.com/articles/
https://poetryartonline.com/contact/

Here's my .htaccess file:

Code: [Select]
# PRETTYURLS MOD BEGINS
# Pretty URLs SEO Pro mod
# https://www.smfhacks.com/prettyurls-seo-pro.php
# .htaccess file generated automatically on: February 25, 2025, 23:26

RewriteEngine on
RewriteBase /

# Rules for: TinyPortal Pages (articles, contact)
RewriteRule ^articles/?$ ./index.php?pretty;page=articles [L,QSA]
RewriteRule ^contact/?$ ./index.php?pretty;page=contact [L,QSA]

# Rules for: profiles
RewriteRule ^profile/([^/]+)/?$ ./index.php?pretty;action=profile;user=$1 [L,QSA]

# Rules for: actions
RewriteRule ^(agreement|acceptagreement|activate|admin|announce|attachapprove|buddy|calendar)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(clock|coppa|credits|deletemsg|dlattach|editpoll|editpoll2|findmember)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(groups|help|helpadmin|jsmodify|jsoption|likes|lock|lockvoting)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(login|login2|logintfa|logout|markasread|mergetopics|mlist|moderate)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(modifycat|movetopic|movetopic2|notifyannouncements|notifyboard|notifytopic|pm|post)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(post2|printpage|profile|quotefast|quickmod|quickmod2|recent|reminder)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(removepoll|removetopic2|reporttm|requestmembers|restoretopic|search|search2|sendactivation)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(signup|signup2|sitemaps|prettyurls|smstats|suggest|splittopics|stats)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(sticky|theme|trackip|about:unknown|unread|unreadreplies|uploadAttach|verificationcode)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(viewprofile|vote|viewquery|viewsmfile|who|\.xml|xmlhttp|forum)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(tpadmin|forum|tportal|tpshout|awesome|sitemap_xsl|team)/?$ ./index.php?pretty;action=$1 [L,QSA]

# Rules for: boards
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([0-9]*)/?$ ./index.php?pretty;board=$1.$2 [L,QSA]

# Rules for: topics
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1;topic=$2.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*|msg[0-9]*|new)/?$ ./index.php?pretty;board=$1;topic=$2.$3 [L,QSA]

# PRETTYURLS MOD ENDS

Re: The forum, I was unsure if TinyPortal was forcing the /forum/ due to separating the boardurl and extending it to /index.php?action=forum
« Last Edit: February 26, 2025, 08:38:28 am by [chrisB] »

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16654
    • View Profile
Re: Pretty URL's Pro support/help
« Reply #3 on: February 26, 2025, 08:34:34 am »
So is tinyportal good now?

Just the issue with the /community/?
What i generally for 2.1 is modify the main index.php find

Code: [Select]
'clock' => array('Calendar.php', 'clock'),
Add after
Code: [Select]
'community' => array('BoardIndex.php', 'BoardIndex'),

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 [chrisB]

  • Pretty Urls SEO Pro
  • Member
  • *****
  • Posts: 41
    • View Profile
Re: Pretty URL's Pro support/help
« Reply #4 on: February 26, 2025, 08:54:09 am »
Sorry, I am not being clear or helpful.

So is tinyportal good now?

No, I can't get the category sections to become pretty URLs. I tried this:
Quote
# TinyPortal Categories (using numeric IDs)
RewriteRule ^news/?$ ./index.php?pretty;cat=4 [L,QSA]
RewriteRule ^tips/?$ ./index.php?pretty;cat=5 [L,QSA]
RewriteRule ^general/?$ ./index.php?pretty;cat=6 [L,QSA]
RewriteRule ^showcase/?$ ./index.php?pretty;cat=7 [L,QSA]
RewriteRule ^features/?$ ./index.php?pretty;cat=8 [L,QSA]
RewriteRule ^interviews/?$ ./index.php?pretty;cat=9 [L,QSA]

# TinyPortal Categories (using Category Names)
RewriteRule ^([A-Za-z]+)/?$ ./index.php?pretty;cat=${lowercase:$1|${lc:$1}}

But it breaks the pages, and doesn't work. I tried without the categories part, and the same outcome happened.

Just the issue with the /community/?
What i generally for 2.1 is modify the main index.php find

Code: [Select]
'clock' => array('Calendar.php', 'clock'),
Add after
Code: [Select]
'community' => array('BoardIndex.php', 'BoardIndex'),

I have added the code, but so far haven't seen any changes. Do I need to edit the htaccess file?


Should I upgrade to the latest version of Pretty URLs Pro?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16654
    • View Profile
Re: Pretty URL's Pro support/help
« Reply #5 on: February 26, 2025, 09:43:51 am »
Always recommend being on latest versions for newest fixes.
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 [chrisB]

  • Pretty Urls SEO Pro
  • Member
  • *****
  • Posts: 41
    • View Profile
Re: Pretty URL's Pro support/help
« Reply #6 on: February 26, 2025, 10:17:53 am »
Renewed and upgraded.

I managed to sort out the extra's mod, that's installed now. I just need to sort the categories and the /forum/ to /community/

TinyPortal Integrate.php

I think this could be conflicting with the /forum/ renaming.

https://github.com/Tinyportal/TinyPortal/blob/master/TinyPortal/Integrate.php

-Edit-

I uninstalled TinyPortal for testing, and the /community/ worked. So, I think my assumptions are on the right path.
« Last Edit: February 26, 2025, 03:58:04 pm by [chrisB] »

Offline [chrisB]

  • Pretty Urls SEO Pro
  • Member
  • *****
  • Posts: 41
    • View Profile
Re: Pretty URL's Pro support/help
« Reply #7 on: March 03, 2025, 10:18:09 am »
Just an update.

I have managed to suss out how to write the category URLs, and it's working. It does seem quite easy to break the links altogether. I don't know if this is a bug, an SMF thing, or if it is normal behaviour. I am still looking into why TinyPortal and Pretty URLs Pro don't respect the edit to make the forum page /community/.

There's probably more going on.

 

Related Topics

  Subject / Started by Replies Last post
2 Replies
6311 Views
Last post July 14, 2006, 04:01:05 pm
by Pat
11 Replies
10162 Views
Last post January 06, 2013, 02:27:07 pm
by SMFHacks
3 Replies
5022 Views
Last post November 18, 2013, 03:35:04 am
by redactalo
2 Replies
3104 Views
Last post January 01, 2020, 08:53:50 pm
by Rock Lee
16 Replies
3438 Views
Last post December 27, 2022, 05:32:14 pm
by [chrisB]

+- Recent Topics

Community suite buying question by SMFHacks
Today at 11:26:20 am

Downloading with Zero Credits? by SMFHacks
March 23, 2025, 01:40:50 pm

Some minor Layout modifications by Senkusha
March 22, 2025, 06:30:31 pm

Uploading Bulk files to a Category? by SMFHacks
March 21, 2025, 08:26:01 pm

Mod for compare gallery.text with board.text by SMFHacks
March 21, 2025, 05:52:46 pm

ST Shop integration by Senkusha
March 18, 2025, 07:33:13 pm

Contact Us by SMFHacks
March 16, 2025, 07:49:23 pm

HTTP 500 error during install by SMFHacks
March 13, 2025, 10:44:31 am

Site upgrade to 2.1 by SMFHacks
March 12, 2025, 09:29:43 pm

[Mod]WebP and AVIF File Support for SMF 2.1 by SMFHacks
March 10, 2025, 04:32:57 pm

Powered by EzPortal