Facebook  Twitter 


+- +-


+- User Information

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

+- Forum Stats

Total Members: 12284
Latest: arthurheller99
New This Month: 11
New This Week: 5
New Today: 0
Total Posts: 39488
Total Topics: 6961
Most Online Today: 134
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 46
Total: 46

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

0 Members and 1 Guest are viewing this topic.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14769
    • View Profile
prettyurls - TroubleShooting.wiki
« on: July 13, 2018, 04:24:23 pm »
If you're experiencing problems with Pretty URLs this page may help you. But first check that your forum is using the latest version of this mod.

Every link causes 404 Not Found errors
If after installing the mod every link is broken, there is probably a problem with your server (it may not support mod_rewrite or per-directory .htaccess configuration files). To fix the links so that the problem can be diagnosed and fixed, or so you can uninstall the mod, create a new .php file with this code:

Code: [Select]
<?php require_once(dirname(__FILE__) . '/SSI.php'); updateSettings(array('pretty_enable_filters' => '0')); ?>
Upload the file to the same location as your forum's SSI.php and open it with your web browser. Then don't forget to delete it!

Links point to old domain after moving forum
This is very simple to fix, in addition to updating all the other settings with repair_settings.php, this mod has one more setting to fix. You can either manually fix the pretty_root_url setting yourself, or else create a new .php with this code:
Code: [Select]
<?php require_once(dirname(__FILE__) . '/SSI.php'); require_once($sourcedir '/Subs-PrettyUrls.php'); updateSettings(array('pretty_root_url' => $boardurl)); pretty_update_filters(); ?>
Upload the file to the same location as your forum's SSI.php and open it with your web browser. Then don't forget to delete it!

Sub-directories can't be opened
If you have a sub-directory in your forum directory you will no longer be able to access it as SMF will think you want to open a board with its name (note if you refer to a page in that sub-directory it will work fine.) With one addition to your .htaccess file you can fix this. You may have to change your FTP client's settings in order to see the hidden .htaccess file. This example is for the sub-directory /chat/, which should open /chat/index.html; add it to the top of your .htaccess file (outside the Pretty URLs section!)

Code: [Select]
RewriteRule ^chat/?$ /chat/index.html [L,QSA]
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
Last post October 07, 2006, 11:43:40 pm
by Nite
14 Replies
Last post December 08, 2011, 01:39:57 am
by Vincent Volmer
0 Replies
Last post May 31, 2017, 10:49:05 pm
by SMFHacks
0 Replies
Last post July 13, 2018, 04:22:02 pm
by SMFHacks
0 Replies
Last post July 13, 2018, 04:23:01 pm
by SMFHacks

+- Recent Topics

SMF 2.1 RCI & SMF Gallery Pro 8.04 500 Errors by SMFHacks
Today at 11:43:22 am

Bulk upload image problem by SMFHacks
February 14, 2019, 11:09:20 pm

Can the old store mod work on SMF 2.1? by SMFHacks
February 13, 2019, 08:58:13 pm

Is it possible for an admin user to upload photos to a nonadmin user's gallery? by 10341mouse
February 13, 2019, 11:15:56 am

SMF Gallery Pro and AD Seller Pro now for SMF 2.1.x by SMFHacks
February 11, 2019, 07:23:56 pm

[Mod]Push Notifications by shuban
February 06, 2019, 09:18:16 pm

Tinyportal and Mkportal.Which is better? by Oldiesmann
February 06, 2019, 07:23:16 pm

SMF 2.1 RC 1 Released by SMFHacks
February 04, 2019, 06:52:36 pm

Customer can't find what to do... by SMFHacks
February 04, 2019, 04:47:38 pm

"Undefined Index" errors by SMFHacks
January 30, 2019, 05:50:42 pm

Powered by EzPortal