Facebook 

SMFHacks.com - Celebrating 20 Years!

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4342
Latest: eva
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 44312
Total Topics: 7676
Most Online Today: 607
Most Online Ever: 27044
(May 30, 2026, 09:10:16 pm)
Users Online
Members: 0
Guests: 315
Total: 315

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

0 Members and 0 Guests are viewing this topic.

Re: prettyurls - TroubleShooting.wiki
« Reply #30 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

I installed the way I installed all the others mods. I uploaded the prettyurls.zip file to the Packages folder on my server and extracted it there. Then on my admin panel installed it. No errors. Do you think it was not correct?

Do you mean check smf_settings table in the database?

I don't understand what you say about a script because you didn't finish the sentence.

It may have something to do with the redirect to HTTPS, because I analyzed my site to see if all was good, and even google adsense bot could not see it correctly, and other bots said it had a 500 error, but I don't see anything.

Curiously now I tried to access my site using http, and it is not redirecting to https, but, before it was. And I see that in the footer I still see the copyright of one of your plugins, the contact page or the ad management that I paid to remove the copyright and you helped me by email.

But on the https I don't see it. I send it here attached.

I am beginning to think it is better uninstall everything and begin with a clean installation.

   

Re: prettyurls - TroubleShooting.wiki
« Reply #31 on: »
You make this script
Code: [Select]
<?php require_once(dirname(__FILE__) . '/SSI.php'); require_once($sourcedir . '/Subs-PrettyUrls.php'); updateSettings(array('pretty_root_url' => $boardurl)); pretty_update_filters(); ?>

Place in root of your forum that execute via browser based on the path.

The copyright is an issue with sources/query-string.php i think.
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 #32 on: »
You make this script
Code: [Select]
<?php require_once(dirname(__FILE__) . '/SSI.php'); require_once($sourcedir . '/Subs-PrettyUrls.php'); updateSettings(array('pretty_root_url' => $boardurl)); pretty_update_filters(); ?>

Place in root of your forum that execute via browser based on the path.

The copyright is an issue with sources/query-string.php i think.

Could you please be more specific? How do I place this code in the code of the forum? In my case, it is the main domain, so it is in my public_html folder, right?

But I think I need to create a file using notepad, and give a name to the file, and only then place it there. If so, which name I give to the file?

What should I look for in the sources/query-string.php file to solve the problem with the copyright? 

Re: prettyurls - TroubleShooting.wiki
« Reply #33 on: »
public_html folder. create with notepad. Give any name you wish.

Attach the sources/Query-string.php file here. But I could be mistaken. I haven't looked at prettyurls in a while so i don't remember how the copyright is generated.
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 #34 on: »
Ok, I created the file with notepad, and gave the name script.txt

Uploaded to the server in the root directory, and then loaded it on my browser: https://www.mydomain.com/index.php/script.txt

It was supposed to happen something?

I attach here the sources/Query-string.php so you can take a look.

Thanks.

Re: prettyurls - TroubleShooting.wiki
« Reply #35 on: »
needs to end in .php not .txt then run it.
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 #36 on: »
I did it. Deleted the first one. Renamed the original on my PC, uploaded it, and the system added .txt in the end automatically. I renamed it again in the server, removing the .txt.

Then ran it. The page reloaded. How do I verify that what you wanted to do with the script was done?

BTW, at the moment I don't have the mod prettyurls installed, so I can access my admin panel.

Should I have it installed while running this script?

Re: prettyurls - TroubleShooting.wiki
« Reply #37 on: »
Yes or you can reinstall pretty urls again and see if it helps.
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 #38 on: »
I reinstalled it. That specific board had still that board number in the url. Then I ran the script again. No change.

Then I ran the maintenance. No change. I cleaned the files cache and my browser cache, and still no results.

The problem is that I can delete the board, create a new one, but, it will still be the same. All the other 15 boards have the pretty urls.

Any idea?

Re: prettyurls - TroubleShooting.wiki
« Reply #39 on: »
Whats the name of the board? I have no other ideas...
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 #40 on: »
General Discussion but translated in my language.

Could it be because there is a General Discussion board installed by default when we install SMF?

Re: prettyurls - TroubleShooting.wiki
« Reply #41 on: »
Maybe but haven't seen that happen before
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 #42 on: »
Ok, I tried a different approach. I created another board under the same category with the name Test, just to see if it would have a number in the URL. No, it was perfect.

Then I changed the name to General Discussion and added the board description. Then I deleted the other one with the number in the url.

All good except that the url of the Test board doesn't change to general-discussion, even after running the maintenance on the pretty urls mod to force the rewrite of the urls.

I really think that has something to do with the default SMF board having this name, and for some reason the software doesn't let the mod rewrite it.

 There is some way to change the name of this url from test to general-discussion manually?

Re: prettyurls - TroubleShooting.wiki
« Reply #43 on: »
There should be  a  Prettyurls link in the boards area next board name 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 #44 on: »
Yes, but like I said yesterday in the reply Nr. 28 in the previous page, it doesn't replace the url but it add to the actual url.

BTW, to be 100% sure it has to do with the default General Discussion board, I just created another board, but this time with the name General Discussion in my language, and immediately the url got the number. Any other name the url doesn't have a number.

Any idea where can I solve this problem? Which mod file should I manually change? Maybe delete some code or insert some? I don't have any experience with code, only very basic things.

Did you take a look in the sources/Query-string.php because of your copyright link?   

 

Related Topics

  Subject / Started by Replies Last post
7 Replies
10404 Views
Last post October 07, 2006, 11:43:40 pm
by Nite
14 Replies
16119 Views
Last post December 08, 2011, 01:39:57 am
by Vincent Volmer
0 Replies
4799 Views
Last post May 31, 2017, 10:49:05 pm
by SMFHacks
0 Replies
6103 Views
Last post July 13, 2018, 04:22:02 pm
by SMFHacks
0 Replies
6569 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 &#39; in Most Viewed (and Recent Items ?) by SMFHacks
August 22, 2026, 11:01:56 pm

Powered by EzPortal