|
TroubleShooting
Solutions to a few common problems
en, tr 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 errorsIf 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 forumThis 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 openedIf 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] |
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!
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!
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?
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'.
thanks dude, best seo :) but, "?!" etc. character show, in url. How do change "!?" character to "-" character ?
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?
Hi peterhupuczi, yes you can add those characters to the big array in Subs-PrettyUrls?.php
Thanks for the great info...
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
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!!!
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!
I manually added all the code and nothing happened.
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?
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?
When i tried to install it i got this error
- Replace ./Sources/Subs.php Test failed
Any suggestions, I am a newbie, please help..Do it manually
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
Nice mod! Most everything seems to work in RC5 but I did find that when marking a topic unread there is a redirection failure.
I just installed this on 2.0 RC5 and also get the redirect error.
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?
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.
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
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
Links point to old domain after moving forum
I have a problem with error 500 internal server
Help me !
SMF 1.1.13 default theme Simple portal 2.3.3
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...
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.
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.))
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?
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
When i enable my pretty url inmy forum, my edit board in admin is no more opening, no error showing but blank
How do I activate pretty URLs in my forum??? I have installed by can't activate!!
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?