Advertisement:

Author Topic: Pretty URLs  (Read 2253736 times)

Offline SMFHacks.com Team

  • Jr. Member
  • **
  • Posts: 356
    • smfhacks on Facebook
    • @smfhacks on Twitter
    • SMFHacks.com
Re: Pretty URLs
« Reply #7720 on: July 12, 2018, 10:39:02 PM »
Update
 
Pretty URLs 2.0
 !No longer store verificationcode action saving database space
 !Fixed no longer stores non board urls


I have also released Pretty URLS Seo Pro at https://www.smfhacks.com/prettyurls-seo-pro.php which adds extra SEO options and more editing control over key files.


Disclaimer: SMFHacks.com Team is not affiliated with the SMF Team or the SimpleMachines NPO.

http://ForumRankings.net - Get Forum Ranked!
SMFHacks.com -  Paid Modifications for SMF
Latest Mods:
Community Suite
Newsletter Pro SMF Gallery Pro SMF Classifieds SMF Store

Online vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 20,462
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Pretty URLs
« Reply #7721 on: August 09, 2018, 11:23:44 PM »
Minor update
2.0.1 fixed handling of forum action rewrite for TinyPortal
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

Offline Torngate

  • Semi-Newbie
  • *
  • Posts: 30
  • Gender: Male
    • Torngate on GitHub
    • Shadow Fleet
Re: Pretty URLs
« Reply #7722 on: August 15, 2018, 09:21:39 PM »
Hello,

This may have been answered before but I can't really find it.

Let's say I have a website (website.web/forum/index.php), how does PrettyURLs accomidate this to not direct to website.web/page, which would break the setup?

I'm sorry if I'm not being very clear, I hope someone can translate better.

Cheers!
Site Administrator- Shadow Fleet Star Trek RPG

Online vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 20,462
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Pretty URLs
« Reply #7723 on: August 15, 2018, 09:27:20 PM »
It uses mod_rewrite with .htaccess rules to chagne the actions, board  urls and topics 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

Offline Torngate

  • Semi-Newbie
  • *
  • Posts: 30
  • Gender: Male
    • Torngate on GitHub
    • Shadow Fleet
Re: Pretty URLs
« Reply #7724 on: August 15, 2018, 09:28:56 PM »
So with that, would it know to write the new .htaccess rules to the /forum section instead of the top-level .web side?
Site Administrator- Shadow Fleet Star Trek RPG

Online vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 20,462
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Pretty URLs
« Reply #7725 on: August 15, 2018, 10:27:20 PM »
Pretty urls should just affect the forum area by default.
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

Offline Gryzor

  • Sr. Member
  • ****
  • Posts: 771
  • Gender: Male
  • CPCwiki.eu - The Amstrad CPC Encyclopaedia!
    • CPCWiki
Re: Pretty URLs
« Reply #7726 on: August 16, 2018, 02:38:36 AM »
Indeed, that's how I do it too, it's pretty straightforward.

Offline srafie

  • Semi-Newbie
  • *
  • Posts: 12
Re: Pretty URLs
« Reply #7727 on: August 25, 2018, 12:31:28 PM »
hi, i have big issues with Pretty URLs (V 1.16) that causes me error503 and can't uninstall it with the file fix.packages.php. Please can you tell me how to uninstall it manually.

Thnks

Offline Gryzor

  • Sr. Member
  • ****
  • Posts: 771
  • Gender: Male
  • CPCwiki.eu - The Amstrad CPC Encyclopaedia!
    • CPCWiki
Re: Pretty URLs
« Reply #7728 on: August 25, 2018, 01:05:50 PM »
Just take a look at the steps that fail through SMF and do them manually.

Also, as a matter of urgency, you can probably edit .htaccess to reverse its effects?

Online vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 20,462
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Pretty URLs
« Reply #7729 on: August 25, 2018, 10:27:45 PM »
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

Offline CrimeS

  • Jr. Member
  • **
  • Posts: 215
  • Gender: Male
    • studiocrimes.com
Re: Pretty URLs
« Reply #7730 on: September 02, 2018, 02:19:58 PM »
Some users on polish support are reporting that polish letter such as "ą" "ę" "ń" are translated as /f05 etc. Any fix to make them just equivalent of english letters in link? ą => a

Online vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 20,462
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Pretty URLs
« Reply #7731 on: September 02, 2018, 02:22:09 PM »
It can be done if you modify one of the files there is  file that handles the character mapping
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

Offline mattizzy

  • Semi-Newbie
  • *
  • Posts: 75
  • Gender: Male
    • mattizzy.okeke on Facebook
    • @mattizzyo on Twitter
Re: Pretty URLs
« Reply #7732 on: September 04, 2018, 02:22:40 AM »
Hi I want to make changes to the URL, I modified the pretty URL to
site.com/123/how-to-run

i.e url/topicid/prettyurl

When I apply the setting and it redirects me to the test page, the URL works but when I enable URL rewrites, it does not work but shows URL redirected too many times. Please help
I am only an SMF Addict. I think I took overdose.

Online vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 20,462
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Pretty URLs
« Reply #7733 on: September 04, 2018, 08:22:37 AM »
I don't believe that is supported unless you make a lot of changes to the code
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

Offline mattizzy

  • Semi-Newbie
  • *
  • Posts: 75
  • Gender: Male
    • mattizzy.okeke on Facebook
    • @mattizzyo on Twitter
Re: Pretty URLs
« Reply #7734 on: September 04, 2018, 01:27:31 PM »
I don't believe that is supported unless you make a lot of changes to the code

Can you tell me the Secret in URL REWRITING??

LIKE HOW DO YOU MANGE TO REPLACE ALL THE URL WITH SITE.COM/BOARD/HOW-TO-RUN

IF YOU CAN TELL ME THIS, I CAN CREATE AN HTACCESS FOR MY SITE AND MANUALLY GIVE THE POSTS THE CONTENT IN SITE.COM/INDEX.PHP?topic=topicId
I am only an SMF Addict. I think I took overdose.

Online vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 20,462
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Pretty URLs
« Reply #7735 on: September 04, 2018, 01:53:00 PM »
Depends. I normally use id's in my urls on my sites to keep rewriting easier. Otherwise you need to keep a database of the slugs to do the rewriting.
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

Offline mattizzy

  • Semi-Newbie
  • *
  • Posts: 75
  • Gender: Male
    • mattizzy.okeke on Facebook
    • @mattizzyo on Twitter
Re: Pretty URLs
« Reply #7736 on: September 04, 2018, 03:18:28 PM »
Depends. I normally use id's in my urls on my sites to keep rewriting easier. Otherwise you need to keep a database of the slugs to do the rewriting.

I am only trying to make changes to the topic filter. can you tell me where to edit to change the board name that attaches itself to the topic URL.
e.g site.com/general-discussion/welcome-to-smf

how can I replace the general-discussion with what ever I wand and make the URL valid. I don't care how much code I need to edit.

Note: I'm moving to SMF and my Old forum URL uses that, that's why I want to do this
I am only an SMF Addict. I think I took overdose.

Offline jordi

  • Newbie
  • *
  • Posts: 9
Re: Pretty URLs
« Reply #7737 on: September 05, 2018, 12:08:23 AM »
When trying to install the MOD Pretty URLs, I find the following error:

-------------------
Error in the Database

Specified key was too long; max key length is 1000 bytes
Archivo: /home/wbarzgfe/public_html/Packages/temp/SMF2-0/install.php
Línea: 39
--------------


I am using the hosting service banahosting, it is a virgin installation, it has the default theme and the latest version of smf.

Online vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 20,462
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Pretty URLs
« Reply #7738 on: September 05, 2018, 05:39:22 AM »
Not sure the cause of that...did you have it installed before the mod?
That line is just to create the table. And the key length would only be 255 bytes
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

Offline Dwev

  • Jr. Member
  • **
  • Posts: 217
Re: Pretty URLs
« Reply #7739 on: September 05, 2018, 06:58:08 AM »
I am only trying to make changes to the topic filter. can you tell me where to edit to change the board name that attaches itself to the topic URL.
e.g site.com/general-discussion/welcome-to-smf

As far as I know you can do this in Admin > Forum > Boards > Edit Boards (I hope I got this right, our forum isn't in English).

Here you should be able to see the list of all of your boards, with to the right the options permissions, move, edit and Pretty URLs.