News:

Join the Facebook Fan Page.

Main Menu

Pretty URLs

Started by SMFHacks.com Team, January 31, 2007, 10:56:43 AM

Previous topic - Next topic

technica

I installed this MOD to get rid of phpsessionid from board URLs

Now the Urls are fine but the indexpage url shows phpsessionId

Whenever the site is opened in new browser instance, the home page (landing Page of site) shows phpsessionID after index.php?

please help  :(
Programming and Webmaster Forum - AdSense Revenue Sharing Forum
Online Magazine

bklynjava

#2521
Hello Dannii any help is appreciated.

I installed pretty url and my board is dead now.

Only shows a white page with this error
8: Undefined index: pretty_enable_filters
/home/myiphone/public_html/forum/Sources/Subs.php
2831


I have no idea how to uninstall it, I tried renaming the 2 files in the sources folder and still its the same.

I am running smf 114 and tp the test was successful when it installed.

Help




MelogKnaj

I tried to install this on 1.1.5 and now the links to everything but the index page are broken. Anyone know how to fix this?

brianjw

If you both searched this topic you'd find so many answers to your problems and how to temporarily fix your problems...
Quote from: Dannii on October 09, 2008, 12:40:28 PM
http://code.google.com/p/prettyurls/wiki/TroubleShooting
Follow the instructions here to disable the mod. Then check your forum and Apache error logs.

MelogKnaj

Thank you for the link. I managed to uninstall it as it said but can find no evidence of any errors, and my server should support everything it mentioned.

Dannii

Quote from: Technical Team on October 12, 2008, 11:50:03 AMI installed this MOD to get rid of phpsessionid from board URLs

Now the Urls are fine but the indexpage url shows phpsessionId

Whenever the site is opened in new browser instance, the home page (landing Page of site) shows phpsessionID after index.php?

please help  :(
That's just default SMF behaviour, I won't change that! It will remove the phpsessid after 3 pageviews, and won't even show it on the first page view to spiders.

Quote from: bklynjava on October 12, 2008, 04:27:28 PMHello Dannii any help is appreciated.

I installed pretty url and my board is dead now.

Only shows a white page with this error
8: Undefined index: pretty_enable_filters
/home/myiphone/public_html/forum/Sources/Subs.php
2831


I have no idea how to uninstall it, I tried renaming the 2 files in the sources folder and still its the same.

I am running smf 114 and tp the test was successful when it installed.

Help
Follow these instructions to disable it:
http://code.google.com/p/prettyurls/wiki/TroubleShooting
Also, upgrade to SMF 1.1.6!

Quote from: MelogKnaj on October 12, 2008, 07:50:43 PMThank you for the link. I managed to uninstall it as it said but can find no evidence of any errors, and my server should support everything it mentioned.
It's possible you need a RewriteBase rule... Try adding this at the top of .htaccess:
RewriteBase /
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

MelogKnaj

Thanks for the response. I tried editing that into the .htaccess and it didn't seem to fix the problem. Guess I will just have to deal with my ugly urls for now and see if it's a problem with my host.

REHK

Hi if this has come up before im sorry for repeating the subject. I am well out of my depth here I think. Basically im having problems with subdomains on my host whom I have to say are very very good. They have got back to me with this reply

Hello,

Okay I've finally figured out what's going wrong here. Something in your .htaccess file is looking for a index.php file instead of a index.html file. If you take the htaccess file away it works fine. You'll want to look into what in the htaccess file is doing that.

Regards,
Jason


I have hardly any mods install and only Pretty URL's write a .htaccess. I can't read the .htaccess as it's quite full and beyond my knowledge. Could somebody please explain what i need to change :D

# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: September 27, 2008, 18:49

RewriteEngine on

# Rules for: actions
RewriteRule ^(activate|admin|announce|ban|boardrecount|buddy|calendar|cleanperms)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(collapse|convertentities|convertutf8|coppa|deletemsg|detailedversion|display|dlattach)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(dumpdb|editpoll|editpoll2|featuresettings|featuresettings2|findmember|help|helpadmin)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(im|jsoption|jsmodify|lock|lockVoting|login|login2|logout)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(maintain|manageattachments|manageboards|managecalendar|managesearch|markasread|membergroups|mergetopics)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(mlist|modifycat|modifykarma|modlog|movetopic|movetopic2|news|notify)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(notifyboard|optimizetables|packageget|packages|permissions|pgdownload|pm|post)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(post2|postsettings|printpage|profile|profile2|quotefast|quickmod|quickmod2)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(recent|regcenter|register|register2|reminder|removetopic2|removeoldtopics2|removepoll)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(repairboards|reporttm|reports|requestmembers|search|search2|sendtopic|serversettings)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(serversettings2|smileys|smstats|spellcheck|splittopics|stats|sticky|theme)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(trackip|about:mozilla|about:unknown|unread|unreadreplies|viewErrorLog|viewmembers|viewprofile)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(verificationcode|vote|viewquery|who|\.xml)/?$ ./index.php?pretty;action=$1 [L,QSA]

# Rules for: boards
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([0-9]*)/?$ ./index.php?pretty;board=$1.$2 [L,QSA]

# Rules for: topics
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1;topic=$2.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*|msg[0-9]*|new)/?$ ./index.php?pretty;board=$1;topic=$2.$3 [L,QSA]

<IfModule mod_security.c>
   # Turn off mod_security filtering.  SMF is a big boy, it doesn't need its hands held.
   SecFilterEngine Off

   # The below probably isn't needed, but better safe than sorry.
   SecFilterScanPOST Off
</IfModule>


Many thanks in advance

xjessie007

#2528
Quote from: Dannii on September 17, 2008, 09:02:15 PM
Well once you've saved the settings in the admin panel it should stop.

Hi, can you, please, elaborate on what exactly needs to be done? I installed prettyurls-0-8-5.tar.gz on 1.1.6., clean first-time install, pretty urls work fine, but I am too getting the error messages:

http://localhost:8083/forum/index.php?action=admin;area=pretty;save 
8: Undefined index: pretty_enable_filters
File: C:\User\Web\WWW_ROOT_DEV\forum\Sources\PrettyUrls.php
Line: 61

http://localhost:8083/forum/index.php?action=admin;area=pretty 
8: Undefined index: pretty_enable_filters
File: C:\User\Web\WWW_ROOT_DEV\forum\Sources\QueryString.php
Line: 517

http://localhost:8083/forum/index.php?action=admin;area=pretty 
8: Undefined index: pretty_enable_filters
File: C:\User\Web\WWW_ROOT_DEV\forum\Sources\PrettyUrls.php
Line: 97


I have no idea what these errors mean or how to approach fixing them. Tx.

Edit: Sorry, I posted this while being in the middle of this thread. Well, anyway, I am still getting these errors even after reviewing the link posted above. My pretty links work ok, but these errors show up in the error log. I do have mod_rewrite which works ok.
When traveling to the Schengen zone (most of Europe), remember that some nationals need so called Schengen visa. Schengen visa is a travel document.
Check the schengen visa travel guide

MelogKnaj

Ignore my last post I figured it out, I hadn't made my .htaccess writable  ::) oops

Apllicmz

i install in my pc i see that msg

Forbidden You don't have permission to access /SMFMZ/smf115/ on this server.
Apache/2.0.54 (Win32) PHP/4.4.4 Server at localhost Port 85[/hr]



Frozt

Quote from: joomlamz on October 13, 2008, 09:12:33 PM
i install in my pc i see that msg

Forbidden You don't have permission to access /SMFMZ/smf115/ on this server.
Apache/2.0.54 (Win32) PHP/4.4.4 Server at localhost Port 85[/hr]

I had a similar problem when I tried in local

if you have the installation in a alias, and you access your forum something like this:

http://127.0.0.1/alias_of_installation/

edit .htaccess file

find

RewriteEngine on

and add this after:

RewriteBase /alias_of_installation

and if you only see the main page of the forum and have an error when you clink in any link try to see in Apache configuration is the override of that alias have "AllowOverride None", change it to "AllowOverride All"


I hope this help you  :)

bjraines

I had a hacking attempt today on pretty url and it brought down my forum

Hacking attempt...

INSERT INTO smf_pretty_topic_urls
(ID_TOPIC, pretty_url)
VALUES (2341, "selective-precipitation")
File: /home/mychem/public_html/forums/Sources/PrettyUrls-Filters.php
Line: 139

mkress

hello!

I have installed pretty urls since a few weeks.
my smf-board has round about 7000 topics and 95000 threads.
The pretty urls cache table has now over 350 MegaBytes of Data in it (at over 2 million entries) - so i don't think that that's normal behaviour...

it would be great if other uses could  post data of their boards and pretty url cache

mark7144

#2534
I've found a bug... when I post a reply to a topic using the Opera browser on my mobile phone it comes up with a 404 although it does post the content. A few people on my forum use their mobile phones so this is an issue, before installing the mod it all worked fine.

Not Found

The requested URL /talk/chit-chat/us-presidential-race-2008/new/#new was not found on this server.


Could it be to do with the fact it's missing the domain at the start of the URL?

Pяηѕѕ LF

#2535
Hello,

I install 0.8.5 and when QueryString.php it's as:


$_REQUEST['topic'] = str_replace(array(''', '\\'), array(chr(18), ''), $_REQUEST['topic']);


I have a error message but when I changed as this:

$_REQUEST['topic'] = str_replace(array('&#039;', '\\'), array(chr(18), ''), $_REQUEST['topic']);

I don't have the message error but topic not work correct. the topic not open.

Why and what can I do for repair this. thanks.
1.1.21 Default

Dannii

Quote from: REHK on October 13, 2008, 01:58:18 PM
Hi if this has come up before im sorry for repeating the subject. I am well out of my depth here I think. Basically im having problems with subdomains on my host whom I have to say are very very good. They have got back to me with this reply

Hello,

Okay I've finally figured out what's going wrong here. Something in your .htaccess file is looking for a index.php file instead of a index.html file. If you take the htaccess file away it works fine. You'll want to look into what in the htaccess file is doing that.

Regards,
Jason


I have hardly any mods install and only Pretty URL's write a .htaccess. I can't read the .htaccess as it's quite full and beyond my knowledge. Could somebody please explain what i need to change :D

# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: September 27, 2008, 18:49

RewriteEngine on

# Rules for: actions
RewriteRule ^(activate|admin|announce|ban|boardrecount|buddy|calendar|cleanperms)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(collapse|convertentities|convertutf8|coppa|deletemsg|detailedversion|display|dlattach)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(dumpdb|editpoll|editpoll2|featuresettings|featuresettings2|findmember|help|helpadmin)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(im|jsoption|jsmodify|lock|lockVoting|login|login2|logout)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(maintain|manageattachments|manageboards|managecalendar|managesearch|markasread|membergroups|mergetopics)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(mlist|modifycat|modifykarma|modlog|movetopic|movetopic2|news|notify)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(notifyboard|optimizetables|packageget|packages|permissions|pgdownload|pm|post)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(post2|postsettings|printpage|profile|profile2|quotefast|quickmod|quickmod2)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(recent|regcenter|register|register2|reminder|removetopic2|removeoldtopics2|removepoll)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(repairboards|reporttm|reports|requestmembers|search|search2|sendtopic|serversettings)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(serversettings2|smileys|smstats|spellcheck|splittopics|stats|sticky|theme)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(trackip|about:mozilla|about:unknown|unread|unreadreplies|viewErrorLog|viewmembers|viewprofile)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(verificationcode|vote|viewquery|who|\.xml)/?$ ./index.php?pretty;action=$1 [L,QSA]

# Rules for: boards
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([0-9]*)/?$ ./index.php?pretty;board=$1.$2 [L,QSA]

# Rules for: topics
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1;topic=$2.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*|msg[0-9]*|new)/?$ ./index.php?pretty;board=$1;topic=$2.$3 [L,QSA]

<IfModule mod_security.c>
   # Turn off mod_security filtering.  SMF is a big boy, it doesn't need its hands held.
   SecFilterEngine Off

   # The below probably isn't needed, but better safe than sorry.
   SecFilterScanPOST Off
</IfModule>


Many thanks in advance
I don't know what your problem is sorry... can you explain it?

Quote from: xjessie007 on October 13, 2008, 04:48:29 PM
Hi, can you, please, elaborate on what exactly needs to be done? I installed prettyurls-0-8-5.tar.gz on 1.1.6., clean first-time install, pretty urls work fine, but I am too getting the error messages:

I have no idea what these errors mean or how to approach fixing them. Tx.

Edit: Sorry, I posted this while being in the middle of this thread. Well, anyway, I am still getting these errors even after reviewing the link posted above. My pretty links work ok, but these errors show up in the error log. I do have mod_rewrite which works ok.
Are they continuing to show up, or are there just a few from when you first installed the mod?

Quote from: joomlamz on October 13, 2008, 09:12:33 PM
i install in my pc i see that msg

Forbidden You don't have permission to access /SMFMZ/smf115/ on this server.
Apache/2.0.54 (Win32) PHP/4.4.4 Server at localhost Port 85[/hr]
Have you set permissions correctly?

Quote from: bjraines on October 14, 2008, 09:25:37 PM
I had a hacking attempt today on pretty url and it brought down my forum

Hacking attempt...

INSERT INTO smf_pretty_topic_urls
(ID_TOPIC, pretty_url)
VALUES (2341, "selective-precipitation")
File: /home/mychem/public_html/forums/Sources/PrettyUrls-Filters.php
Line: 139
It's not a hacking attempt, just a bug. Upgrade to 0.8.5.

Quote from: fca07 on October 16, 2008, 02:32:10 PM
hello!

I have installed pretty urls since a few weeks.
my smf-board has round about 7000 topics and 95000 threads.
The pretty urls cache table has now over 350 MegaBytes of Data in it (at over 2 million entries) - so i don't think that that's normal behaviour...

it would be great if other uses could  post data of their boards and pretty url cache
2 million is possibly a little high... you can always empty it at any time, just beware it will fill up again.

Quote from: mark7144 on October 17, 2008, 04:36:41 AM
I've found a bug... when I post a reply to a topic using the Opera browser on my mobile phone it comes up with a 404 although it does post the content. A few people on my forum use their mobile phones so this is an issue, before installing the mod it all worked fine.

Not Found

The requested URL /talk/chit-chat/us-presidential-race-2008/new/#new was not found on this server.


Could it be to do with the fact it's missing the domain at the start of the URL?
No, I don't think that would make a difference. I don't know what the problem is... does Opera desktop work fine?

Quote from: ア尺乇刀丂乇丂 on October 17, 2008, 12:26:50 PM
Hello,

I install 0.8.5 and when QueryString.php it's as:


$_REQUEST['topic'] = str_replace(array(''', '\\'), array(chr(18), ''), $_REQUEST['topic']);


I have a error message but when I changed as this:

$_REQUEST['topic'] = str_replace(array('&#039;', '\\'), array(chr(18), ''), $_REQUEST['topic']);

I don't have the message error but topic not work correct. the topic not open.

Why and what can I do for repair this. thanks.

What exact error are you getting?
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

Pяηѕѕ LF

I Have this error :

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /homez.13/site/www/forum/Sources/QueryString.php on line 217
1.1.21 Default

Dannii

Ahh yes. Well did you uninstall the mod, put back the original source files from the install zip and try installing the mod again, like I suggested before?
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

mark7144

Danni: The bug doesn't happen with Opera desktop but I use my mobile quite a lot on my forum and only got this after the mod was installed.

Advertisement: