Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4206
Latest: jagwire
New This Month: 0
New This Week: 0
New Today: 0
Stats
Total Posts: 42718
Total Topics: 7443
Most Online Today: 60
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 37
Total: 37

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

0 Members and 1 Guest are viewing this topic.

guest14411

  • Guest
Re: prettyurls - TroubleShooting.wiki
« Reply #30 on: October 25, 2021, 03:59:53 pm »
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.

   

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16204
    • View Profile
Re: prettyurls - TroubleShooting.wiki
« Reply #31 on: October 25, 2021, 04:07:45 pm »
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/

guest14411

  • Guest
Re: prettyurls - TroubleShooting.wiki
« Reply #32 on: October 26, 2021, 09:08:32 am »
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? 

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16204
    • View Profile
Re: prettyurls - TroubleShooting.wiki
« Reply #33 on: October 26, 2021, 09:46:33 am »
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/

guest14411

  • Guest
Re: prettyurls - TroubleShooting.wiki
« Reply #34 on: October 26, 2021, 12:10:15 pm »
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.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16204
    • View Profile
Re: prettyurls - TroubleShooting.wiki
« Reply #35 on: October 26, 2021, 02:03:21 pm »
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/

guest14411

  • Guest
Re: prettyurls - TroubleShooting.wiki
« Reply #36 on: October 26, 2021, 02:18:40 pm »
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?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16204
    • View Profile
Re: prettyurls - TroubleShooting.wiki
« Reply #37 on: October 26, 2021, 02:35:42 pm »
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/

guest14411

  • Guest
Re: prettyurls - TroubleShooting.wiki
« Reply #38 on: October 26, 2021, 02:54:32 pm »
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?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16204
    • View Profile
Re: prettyurls - TroubleShooting.wiki
« Reply #39 on: October 26, 2021, 03:01:27 pm »
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/

guest14411

  • Guest
Re: prettyurls - TroubleShooting.wiki
« Reply #40 on: October 26, 2021, 03:31:40 pm »
General Discussion but translated in my language.

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

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16204
    • View Profile
Re: prettyurls - TroubleShooting.wiki
« Reply #41 on: October 26, 2021, 03:37:15 pm »
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/

guest14411

  • Guest
Re: prettyurls - TroubleShooting.wiki
« Reply #42 on: October 26, 2021, 03:45:21 pm »
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?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16204
    • View Profile
Re: prettyurls - TroubleShooting.wiki
« Reply #43 on: October 26, 2021, 03:47:26 pm »
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/

guest14411

  • Guest
Re: prettyurls - TroubleShooting.wiki
« Reply #44 on: October 26, 2021, 04:22:06 pm »
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
7594 Views
Last post October 07, 2006, 11:43:40 pm
by Nite
1 Replies
3516 Views
Last post September 14, 2014, 09:46:47 am
by SMFHacks
0 Replies
2628 Views
Last post May 31, 2017, 10:49:05 pm
by SMFHacks
0 Replies
2466 Views
Last post July 13, 2018, 04:22:02 pm
by SMFHacks
0 Replies
2720 Views
Last post July 13, 2018, 04:23:01 pm
by SMFHacks

+- Recent Topics

Feature to upload a photo straight when composing a message by SMFHacks
February 04, 2023, 08:13:46 am

Pretty URL's Pro rewriting URLs by [chrisB]
February 01, 2023, 05:18:47 pm

Question before purchase by SMFHacks
February 01, 2023, 03:53:33 pm

Unlimited ending time by Saftek
January 29, 2023, 10:06:26 pm

Converting from Aeva Media by ivanr
January 28, 2023, 10:09:42 am

[Mod] Post Scheduler by bayonetbrant
January 23, 2023, 02:24:09 pm

"Notify all store admins of item purchase" Not Working in SMF 2.1.2 or 2.1.3 by Michael Vail
January 22, 2023, 10:50:23 pm

[Request] Future consideration by [chrisB]
January 18, 2023, 08:42:53 am

Pretty Urls extras by SMFHacks
January 16, 2023, 04:00:57 pm

I don't think its installed correctly by SMFHacks
January 10, 2023, 05:56:21 pm

Powered by EzPortal