My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
TroubleShooting  
Solutions to a few common problems
en, tr
Updated Nov 29, 2009 by curiousdannii

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. Stable and SVN snapshot packages are available on the downloads page.

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:

<?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:

<?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!)

RewriteRule ^chat/?$ /chat/index.html [L,QSA]
Comment by project member curiousdannii, May 3, 2009

This is not the place to ask for support or report bugs.

Please report bugs in the issues tab above, and ask for support in the mod's topic at simplemachines.org. Thanks!

Comment by jaap.haa...@gmail.com, Jan 23, 2010

The sub directory problem has a much more simple solution. Inside every folder in your SMF root dir that is unrelated to SMF, you add a .htaccess file with "RewriteEngine? off" in it. It's as simple as that and works alot better than the solution above. If you do want rewrite rules, just set "RewriteEngine? on" and override the rules you want overridden. That's much more Apache-friendly anyway!

Comment by pankaj....@gmail.com, Jan 27, 2010

hi! I think pretty urls have a big bug in RC2 version. After installing to my forum (http://www.techinspiration.in) all my urls except my forum's is redirecting to my forum! Means there was a blog (http://www.techinspiration.in/blog) if you click this It was redirecting to my forum! My web host has solved this problem but still in some urls the problem is going on! Any suggestions?

Comment by project member curiousdannii, Feb 4, 2010

Hi pankaj.sea. Your problem is exactly the one I had in mind when I wrote the third section. So follow it's instructions, except with 'blog' rather than 'chat'.

Comment by qawsedrf...@gmail.com, Mar 29, 2010

thanks dude, best seo :) but, "?!" etc. character show, in url. How do change "!?" character to "-" character ?

Comment by peterhup...@gmail.com, Jul 31, 2010

Hi, My problem is:

My forum is in Hungary, and this mod doesn't remove characters like $!? from the url and miss out the folloving: Ő,ő,Ű,ű

there is any solution for this problem?

Comment by project member curiousdannii, Sep 8, 2010

Hi peterhupuczi, yes you can add those characters to the big array in Subs-PrettyUrls?.php

Comment by peterhup...@gmail.com, Sep 19, 2010

Thanks for the great info...

Comment by eric.sho...@gmail.com, Sep 28, 2010

I can not edit or add new boards once i installed this mod. any idea why?

I get the following error

Fatal error: Cannot redeclare prettyboardurls() (previously declared in /home//public_html/mainboardirect/Sources/ManageBoards?.php:733

Comment by cra...@gmail.com, Nov 12, 2010

For those of you wondering why your newly re-named board is not updating...

This is because there is a hidden feature in PrettyURLs that you may not know of. In your Modify Boards Admin page, for every board category, there should be a PrettyURLs link to the right of it. Click that and then enter the new pretty url you want to use. Make that one the primary.

Tadah!!!

Comment by DoctorAC...@gmail.com, Jan 3, 2011

Hey Guys,

I'm not much of a computer guy..... here is my question.

Im running version SMF 1.1.11 and Pretty URLs Version 1.0RC4

The problem:

"The page isn't redirecting properly" message on a blank page is displayed after trying to post something or do anything related to editing or posting messages. However, the message do get posted, but it just doesn't return back to the forum.....

How do I fix that?

Thanks!

Comment by pawan2...@gmail.com, Jan 7, 2011

I manually added all the code and nothing happened.

Comment by remc...@gmail.com, Jan 13, 2011

I am running on smf 1.1 with Pretty URLs Version 1.0RC3 and also tried Pretty URLs Version 1.0RC5. I am VERY sure .htaccess modrewrite works on this server because i use it for ceveral other sites on the same VPS. but still when i activate the mod i get 404 errors on the topics or register pages.. the home page has no problems.. anyone able to help me out?

Comment by gordonku...@gmail.com, Jan 22, 2011

Hey,

tried to install PrettyURLs. But when I click "Install now", then this error comes up:

Fatal error: require() [function.require]: Failed opening required '/www/htdocs/w00d7a65/owt3de/forum/Packages/temp/./SMF1-1/install.php' (include_path='.:/usr/share/php:..') in /www/htdocs/w00d7a65/owt3de/forum/Sources/Packages.php on line 556

What's wrong?

Comment by desideZi...@gmail.com, Jan 25, 2011

When i tried to install it i got this error

9. Execute Modification ./Sources/Subs.php Test failed
  1. Replace ./Sources/Subs.php Test failed
Any suggestions, I am a newbie, please help..

Comment by stel...@gmail.com, Feb 2, 2011

Do it manually

Comment by gabriela...@gmail.com, Feb 7, 2011

Hi, I have a little problem. I'm using Pretty URLs and it works all right, except when I want to join the Forum tab (where to add forums or subforums) I get the following error:

Fatal error: Cannot redeclare template_pretty_board_url() (previously declared in /usr/local/pem/vhosts/240076/webspace/httpdocs/mascotas/foro-de-mascotas/Sources/Load.php(2140) : eval()'d code:628) in /usr/local/pem/vhosts/240076/webspace/httpdocs/mascotas/foro-de-mascotas/Sources/Load.php(2140) : eval()'d code on line 670

Everything else works, 10. Greetings

Comment by chuc...@gmail.com, Feb 14, 2011

Nice mod! Most everything seems to work in RC5 but I did find that when marking a topic unread there is a redirection failure.

Comment by mar...@x3cloud.com, Feb 15, 2011

I just installed this on 2.0 RC5 and also get the redirect error.

Comment by theh...@gmail.com, Feb 15, 2011

I have the same issue when posting a reply in 2.0rc5 and rc4. I moved database deleted all pretty related tables and settings - reinstalle prettyurls rc5 and am still unable to post and have it redirect properly afterwards. Just times out. Post goes to the database but no new page comes up?

Comment by virtuals...@gmail.com, Feb 19, 2011

Hello from Spain and Thanks!! for the program.

I have the issue of the velocity go very slow. I stay in goddaddy and go very very sloew when I activate this.

I have more post. http://noticias24h.vrsets.com/

If you could check, with this quantity of post.

Comment by virtuals...@gmail.com, Feb 28, 2011

hello:

when pretty urls realease bad the link www.hemeroteca.co have the root home/isdito/public_html and noticias24h.vrsets.com have the root /home/content/05/6934305/html

also give me a error

The requested URL /home/public_html/economia/ was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument? to handle the request.

If you clean this "/home/public_html" work

Comment by info.pos...@gmail.com, Mar 30, 2011

hi all I have installation this mod and now I can't enter on Boards panel. I bot when unistall Pretty Url is OK, My version is SMF 2.0 RC5

Comment by vanthu1...@gmail.com, May 3, 2011

Links point to old domain after moving forum

I have a problem with error 500 internal server

Help me !

Comment by oguzse...@gmail.com, May 15, 2011

SMF 1.1.13 default theme Simple portal 2.3.3

Trying to uninstall ? Failed in Susbs.php that is normal since there are some other mods there.
I pressed enter and then tried to modify Subs.php according to parse instructions. When I remove the lines related to pretty url, I face strange problems. Like ;

Members unable to login using any browser. White screen appears. Trying to remove error entries with "remove "all" button, again white screen .

The code part that fails when I remove is:

'pretty_admin' => '<a href="' . $scripturl . '?action=admin;area=pretty">' . (isset($txt['pretty_urls']) ? $txt['pretty_urls'] : 'Pretty URLs') . '</a>',

Need urgent help please...

Comment by gary.edw...@gmail.com, Jul 5, 2011

I just tanked my site when I activated Pretty URL on SMF 2.0. I can't figure out how to post on SMF forum. They seem to say come here and this site seems to say go there. Any help would be appreciated.

Comment by smartbl...@gmail.com, Oct 7, 2011

Thanks for the codes. It helped solved it. PS: For those who feels the codes are not working. log in, clear your browser cache and log on again. Works like magic.))

Comment by m...@80sindc.com, Nov 9, 2011

I installed and everything was going well. Now it seems I cannot use the same pretty link if I used it before (but deleted it).

Any ideas why this is?

Comment by pwrfulli...@gmail.com, Dec 20, 2011

Hello everybody hoe someon gonna reply to me or can help me

i installed the mod everyting ok , it work like a charm, but when i wnat to post a reply or a new reply or a new topic, nothing shows up empty page blank, all the other links seems to work in the forum.

so if someone knows what happens or has the same problem and has resolve it, it would be cool to share the info, since i cannot fix this by myself !!! thanks

Comment by waleadel...@gmail.com, Apr 8, 2012

When i enable my pretty url inmy forum, my edit board in admin is no more opening, no error showing but blank

Comment by sandyfoo...@gmail.com, Apr 20, 2012

How do I activate pretty URLs in my forum??? I have installed by can't activate!!

Comment by josef.ko...@gmail.com, Apr 27, 2012

Hey guys, i have a blog subdomain which i have edited the .htcaccess file to show: (RewriteRule? ^blog/?$ /blog/index.php [L,QSA]. It takes me to my homepage, then when i click a blogpost it takes me back to my forums.. Help?


Sign in to add a comment
Powered by Google Project Hosting