Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 12207
Latest: luisda3
New This Month: 15
New This Week: 7
New Today: 0
Stats
Total Posts: 39216
Total Topics: 6904
Most Online Today: 166
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 1
Guests: 116
Total: 117

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

0 Members and 1 Guest are viewing this topic.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14634
    • 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
5353 Views
Last post October 07, 2006, 11:43:40 pm
by Nite
14 Replies
8316 Views
Last post December 08, 2011, 01:39:57 am
by Vincent Volmer
0 Replies
1243 Views
Last post May 31, 2017, 10:49:05 pm
by SMFHacks
0 Replies
90 Views
Last post July 13, 2018, 04:22:02 pm
by SMFHacks
0 Replies
100 Views
Last post July 13, 2018, 04:23:01 pm
by SMFHacks

+- Recent Topics

KARMA Badge by SMFHacks
October 17, 2018, 11:17:16 pm

Turn off Download Stats? by SMFHacks
October 17, 2018, 04:21:18 pm

multiple currencies bug by nonono12
October 17, 2018, 08:03:01 am

remove the boards ? by SMFHacks
October 16, 2018, 03:08:00 pm

Upgraded to pro - some features not working? by SMFHacks
October 16, 2018, 10:21:38 am

message editor pro by SMFHacks
October 15, 2018, 06:19:38 pm

SMF lottery mod by SMFHacks
October 13, 2018, 08:02:41 am

Error after adding Russian translation by SMFHacks
October 08, 2018, 04:10:41 pm

Adseller Pro 3.0 Released! by SMFHacks
October 06, 2018, 05:45:42 pm

problems with my GDRP pro and my SMF forum. by SMFHacks
October 03, 2018, 03:42:57 pm

Powered by EzPortal