Facebook 

SMFHacks.com - Celebrating 20 Years!

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4341
Latest: jmac32here
New This Month: 2
New This Week: 0
New Today: 0
Stats
Total Posts: 44308
Total Topics: 7676
Most Online Today: 282
Most Online Ever: 27044
(May 30, 2026, 09:10:16 pm)
Users Online
Members: 0
Guests: 129
Total: 129

Author Topic: prettyurls - TroubleShooting.wiki  (Read 36646 times)

0 Members and 1 Guest are viewing this topic.

Re: prettyurls - TroubleShooting.wiki
« Reply #15 on: »
Yeah it does you will need to download the mod unzip it.
Find smf2.0/install.zip
and remove this code from it. then rezip it back up.
Code: [Select]
// Create the pretty_urls_cache table
$smcFunc['db_drop_table']('{db_prefix}pretty_urls_cache');
$smcFunc['db_create_table']('{db_prefix}pretty_urls_cache', array(
array('name' => 'url_id', 'type' => 'varchar', 'size' => 255),
array('name' => 'replacement', 'type' => 'varchar', 'size' => 255),
), array(
array('type' => 'primary', 'columns' => array('url_id')),
), array(), 'overwrite');
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/

Re: prettyurls - TroubleShooting.wiki
« Reply #16 on: »
You did it!!! It works!!!

Thank you so much!!!

Re: prettyurls - TroubleShooting.wiki
« Reply #17 on: »
Glad you have it working! Still a strange issue.
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/

Re: prettyurls - TroubleShooting.wiki
« Reply #18 on: »
I have several other SMF installs, how do I upgrade from the old version of Pretty urls to the new version? Is there tutorial somewhere?

Thanks again for your help!

Re: prettyurls - TroubleShooting.wiki
« Reply #19 on: »
Ideally you uninstall old version then install new when possible.
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/

Re: prettyurls - TroubleShooting.wiki
« Reply #20 on: »
That gives:

Code: [Select]
HTTP ERROR 500

Re: prettyurls - TroubleShooting.wiki
« Reply #21 on: »
On uninstall That would be tricky. But most of the updates where just the changes from the sources file.
You can do the replacements just overwrite old files. I would do a backup first
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/

moved host old db having pretty url data how to add mod in new installation
« Reply #22 on: »
moved to new host installed fresh smf and reloaded old db now i am trying to enable pretty url as its already in db. but it gives me error when i try and install mod

Specified key was too long; max key length is 1000 bytes
File: /home/customer/www/samplesite.com/public_html/Packages/temp/SMF2-0/install.php
Line: 39

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 2.0.17, while your database is at version 2.0.10. The above error might possibly go away if you execute the latest version of upgrade.php.

what to do now? where can i find upgrade.php and will that solve this issue ?

Re: prettyurls - TroubleShooting.wiki
« Reply #23 on: »
Replied on smf forum upgrade.php
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/

Re: prettyurls - TroubleShooting.wiki
« Reply #24 on: »
Hello,

I installed pretty urls in a new forum and looks like it is causing me problems.

I ran the maintenance and now it put me out of the admin panel, and I can't access any other pages, only the Home page and boards. Before I saw also an error saying that someone was trying to login as admin, and it was me, I needed to log out as member, and then login and I could access the admin. Then when the time passed, and I needed to login again as admin, it was saying the password was false.

And then like I said above, I can't access the admin panel.

How can I uninstall the Mod manually on my server?

Usually on download page on SMF, there is  a list of files a mod installs, and a list of code it changes in several SMF files. Where do you have it?

Another question related with what another member here posted.     

Quote
make certain and have "index.php?board=" 'allowed' in your robots.txt.

Do you know exactly the code I need to add on my robots.txt file to allow "index.php?board="?

Thanks

Re: prettyurls - TroubleShooting.wiki
« Reply #25 on: »
on my phone but upload package to https://www.smfhacks.com/smf-package-parser.html to reverse edits.  You can also disbale the mod doing the script above

robots.txt is for search engines only
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/

Re: prettyurls - TroubleShooting.wiki
« Reply #26 on: »
Thanks, I solved the problem. I want to use the Mod, but, first it doesn't rewrite one of the boards. I created 16 boards distributed by 2 categories, and one of the boards continues with the url /index.php?board=18.0 instead of the name.

I install the mod, and immediately all the urls are correct, only this one not.

I run the maintenance, and no change.

But the biggest problem is when I run maintenance it redirects me to the home page, and I don't have more access to the admin panel.

Please help me. I have this mod since about 10 years ibn a 1.1.8 smf forum, and never had any problems.

Re: prettyurls - TroubleShooting.wiki
« Reply #27 on: »
Install the mod again. But use the pretty urls link under manage boards to change the url.
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/

Re: prettyurls - TroubleShooting.wiki
« Reply #28 on: »
Already tried many times. Not possible. When I change there the url there, than it shows the url this way: https://www.mydomain.com/httpswww.mydomain.comgeneral-discussion

I tried only add there the last part, "general-discussion", so it would be correct, but it is not possible.

And about what happens when I run maintenance. What could be the reason?


Re: prettyurls - TroubleShooting.wiki
« Reply #29 on: »
The pretty urls root could be wrong.  check in the smf_settings table. for prettyurls root or reset with making a script from
Links point to old domain after moving forum or fix HTTPS
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/

 

Related Topics

  Subject / Started by Replies Last post
7 Replies
10398 Views
Last post October 07, 2006, 11:43:40 pm
by Nite
14 Replies
16104 Views
Last post December 08, 2011, 01:39:57 am
by Vincent Volmer
0 Replies
4794 Views
Last post May 31, 2017, 10:49:05 pm
by SMFHacks
0 Replies
6096 Views
Last post July 13, 2018, 04:22:02 pm
by SMFHacks
0 Replies
6557 Views
Last post July 13, 2018, 04:23:01 pm
by SMFHacks

+- Recent Topics

Registration - anti bot pattern matching by SMFHacks
November 01, 2026, 07:20:17 pm

EZPortal 8 by davejo
October 21, 2026, 01:01:54 pm

Downloads Pro 7.0 Released by SMFHacks
October 07, 2026, 07:35:30 pm

[Mod]ActivityPub Federation for SMF 2.1 by SMFHacks
October 01, 2026, 05:03:45 pm

Newsletter Pro 4.0 Released by SMFHacks
September 23, 2026, 08:08:24 pm

Can't remove or restore any item from the recycle bin by SMFHacks
September 22, 2026, 11:01:51 am

MCP Server for SMF 2.1 - let Claude, ChatGPT or Cursor run your admin chores by SMFHacks
September 12, 2026, 02:50:45 pm

Suggestions for improvements to Ultimate Shoutbox & Chatroom by davejo
September 02, 2026, 01:35:09 am

Automatic Sorting of Categories by Kiwi
August 31, 2026, 12:36:09 am

' appears as ' in Most Viewed (and Recent Items ?) by SMFHacks
August 22, 2026, 11:01:56 pm

Powered by EzPortal