Pretty URLs

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

Previous topic - Next topic

Adish - (F.L.A.M.E.R)

Quote from: Dannii on January 13, 2009, 04:45:18 AM
Quote from: F.L.A.M.E.R on December 19, 2008, 05:41:41 PM
this is something weird, but it doesnt get things in perfect directory...

My site is http://goldysun.com/forum/tech-news/

While it goes to http://goldysun.com/tech-news/ after installation is done.
Check what pretty_root_url is set to (in the smf_settings table.)

It is http://goldysun.com

I tried this query, but it didnt really get me right.
UPDATE smf_settings SET pretty_root_url = 'http://goldysun.com/forum' WHERE variable = 'pretty_root_url'

Özgür

Hi Danni. Again me :D how can i add "pretty url cache clean" in my Scheduled Tasks?
So Long

Dannii

Quote from: cosp on January 13, 2009, 10:57:06 AM
I just installed pretty URLs on SMF 1.1.7. Issue is that whenever i go to a certain board or a topic in that board, i am shown as logged out, and if i click home or profile link from there, i see that i am still logged in. This way i am unable to reply any topics and more importantly maintain form like sticky, lock, unlock, remove etc..

Even if i login there when i am inside that topic or forum, go to home, and visit that forum again,  i am shown as if i am logged out.
What are your forum's cookies settings set to?

Quote from: •~F.L.A.M.E.R~• on January 13, 2009, 12:37:42 PM
Quote from: Dannii on January 13, 2009, 04:45:18 AM
Quote from: F.L.A.M.E.R on December 19, 2008, 05:41:41 PM
this is something weird, but it doesnt get things in perfect directory...

My site is http://goldysun.com/forum/tech-news/

While it goes to http://goldysun.com/tech-news/ after installation is done.
Check what pretty_root_url is set to (in the smf_settings table.)

It is http://goldysun.com

I tried this query, but it didnt really get me right.
UPDATE smf_settings SET pretty_root_url = 'http://goldysun.com/forum' WHERE variable = 'pretty_root_url'
Can you change it with phpMyAdmin?

Quote from: Özgür | ЯocKayseri on January 13, 2009, 07:00:17 PM
Hi Danni. Again me :D how can i add "pretty url cache clean" in my Scheduled Tasks?
I have no idea sorry. Perhaps ask in the coding discussion board.
"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."

cosp


Quote from: cosp on January 13, 2009, 10:57:06 AM
I just installed pretty URLs on SMF 1.1.7. Issue is that whenever i go to a certain board or a topic in that board, i am shown as logged out, and if i click home or profile link from there, i see that i am still logged in. This way i am unable to reply any topics and more importantly maintain form like sticky, lock, unlock, remove etc..

Even if i login there when i am inside that topic or forum, go to home, and visit that forum again,  i am shown as if i am logged out.
Quote from: Dannii on January 14, 2009, 07:34:12 AM
What are your forum's cookies settings set to?
SMFCookie11

Dannii

Yes, but what about the subdomain settings etc.

Are any other forum users having problems?
"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."

cosp

sorry, couldnt really get you...
Its www.cosp.org.pk/forums

And from firefx cookie browser i see:
Name: SMFCookie11
Domain: .www.cosp.org.pk
Path: /forums/

Adish - (F.L.A.M.E.R)

Quote from: Dannii on January 14, 2009, 07:34:12 AM
Quote from: •~F.L.A.M.E.R~• on January 13, 2009, 12:37:42 PM
Quote from: Dannii on January 13, 2009, 04:45:18 AM
Quote from: F.L.A.M.E.R on December 19, 2008, 05:41:41 PM
this is something weird, but it doesnt get things in perfect directory...

My site is http://goldysun.com/forum/tech-news/

While it goes to http://goldysun.com/tech-news/ after installation is done.
Check what pretty_root_url is set to (in the smf_settings table.)

It is http://goldysun.com

I tried this query, but it didnt really get me right.
UPDATE smf_settings SET pretty_root_url = 'http://goldysun.com/forum' WHERE variable = 'pretty_root_url'
Can you change it with phpMyAdmin?

Well, if you mean by running that query in the SQL function? then it gives me out an error.

I think i have made some mistake in the query. Please let me know what can be done.

Dannii

I forgot about the wiki: http://code.google.com/p/prettyurls/wiki/TroubleShooting
You both should try the second one, might help.
"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."

pcigre

I'm having some performance issues with PRetty url...

"Page created in 1.847 seconds with 18 queries. (Pretty URLs adds 1.779s, 2q)"

and on many pages even more... our forum haqs about 300k posts. Its on VPS.

smf_pretty_urls_cache 1,085,225 records in it and 147MB ...

Moif

Hello!

I installed this mod and nothing happened! I checked my error logs and I'm seeing:

Quote
8: Undefined index: pretty_admin_menu
File: [PATH OMITTED]/forums/Sources/Subs.php
Line: 2895

So I've had a look at line 2895 and can see ?action=admin;area=pretty which I tagged onto the end of my forum index url manually in the browser and there was the admin panel :) So I have it installed and working but I'm getting that error and have no pretty_admin_menu

Any advice?



Dannii

Quote from: pcigre on January 15, 2009, 04:44:00 AM
I'm having some performance issues with PRetty url...

"Page created in 1.847 seconds with 18 queries. (Pretty URLs adds 1.779s, 2q)"

and on many pages even more... our forum haqs about 300k posts. Its on VPS.

smf_pretty_urls_cache 1,085,225 records in it and 147MB ...

Oh dear!
Can you turn on the query debugging, and copy that info here please?

Quote from: Moif on January 15, 2009, 05:52:04 AM
Hello!

I installed this mod and nothing happened! I checked my error logs and I'm seeing:

Quote
8: Undefined index: pretty_admin_menu
File: [PATH OMITTED]/forums/Sources/Subs.php
Line: 2895

So I've had a look at line 2895 and can see ?action=admin;area=pretty which I tagged onto the end of my forum index url manually in the browser and there was the admin panel :) So I have it installed and working but I'm getting that error and have no pretty_admin_menu

Any advice?
Looks like the language files didn't get modified correctly. Make sure all the entries got added to modifications.english.php.
"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."

Adish - (F.L.A.M.E.R)

i did the step actually, but it doesnt open up, it just shows me the blank page.. (the famous one you know! :P)


argimiro

#2873
Quick question about http return codes;

I'm seeing:

200: http://www. mysite.co.uk/forums
200: http://www. mysite.co.uk/forums/
200: http://www. mysite.co.uk/forums/nonexistent_subfolder_1
200: http://www. mysite.co.uk/forums/nonexistent_subfolder_1/
200: http://www. mysite.co.uk/forums/nonexistent_subfolder_1/nonexistent_subfolder_2
200: http://www. mysite.co.uk/forums/nonexistent_subfolder_1/nonexistent_subfolder_2/
404: http://www. mysite.co.uk/forums/nonexistent_subfolder_1/nonexistent_subfolder_2/nonexistent_subfolder_3

Shouldn't it be returning a 404 error for everything except the first 2?

3,4,5 & 6 are returning a 200 OK status code, and serving the forum index page even though the URL is 'spurious' & doesn't represent any real content. Have I got something messed up somewhere do you guys think? or is this the correct behaviour - it just seems a bit worrying in terms of, maybe it would cause a duplicate content problem on the search engines if they were requesting old dead url's, and kept on getting told, 'yes the page is still there and here it is.. same content as root'.. ?

argimiro

assam_siddibapa

I might be wrong on this so take care

but, I am guessing you're using a language other than english and you need to add:


$txt['pretty_enable_filters'] = 'Sets whether to prettify anything at all. 0 for no, 1 for yes.';


or the equivalent for your language, into your language file that corresponds to:

/forums/Themes/default/languages/Modifications.english.php

assam_siddibapa

Quote from: argimiro on January 16, 2009, 01:53:11 AM
assam_siddibapa

I might be wrong on this so take care

but, I am guessing you're using a language other than english and you need to add:


$txt['pretty_enable_filters'] = 'Sets whether to prettify anything at all. 0 for no, 1 for yes.';


or the equivalent for your language, into your language file that corresponds to:

/forums/Themes/default/languages/Modifications.english.php

I am using english language only

simmer

hello  :)

i juss installed Pretty URLs everything was fine bt it is changing the adress of categories

http://mobi-movies.org/index.php/board,2.0.html 

every board index category address changes

to

simmer.xxxxxxxhting.com nd this  was my previous host please tell me how to fix this i tried repairsettings bt everything was fine dre please  reply :)

simmer  :)

simmer


argimiro

If it was me having that problem, I'd probably start by having a look in the database via cPanel / phpMyAdmin, and seeing if you can see the string simmer.xxxxxxxhting.com in there. And actually look inside both Settings_bak.php & Settings.php, see if your old host is still listed in there?

I'm guessing


glennk

Hi Danii,

Welcome back.

I recently updated to 2b4 and reinstalled your mod. I have one slight problem. Its nothing major but your help would be appreciated. Under the old version your mod created the url below for the main board in my forum

http://www.whitbyseaanglers.co.uk/forum/north-east-coast-fishing/0/

Under the new version in 2b4 your mod creates a slightly different url

http://www.whitbyseaanglers.co.uk/forum/north-east-coast-fishing/

Now its only a small problem but I had built up a small amount of page rank on the first url and had a few internal and external links pointing there. I would like to 301 the old url to the new one but it just doesnt seem to work. Can you give me the code needed to 301 the old url to the new one please and advise on where it needs to go.

Many thanks as always - Glenn

Advertisement: