Pretty URLs

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

Previous topic - Next topic

Dannii

You won't break anything by checking the error logs!
"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."

L.G.S

Quote from: Dannii on May 09, 2008, 10:21:27 PM
QuoteI added pretty urls and it made my site disappear so i deleted the db table for ppretty ursl as instructed and still nothing, just a blank site.  any suggestions? im freaking out so no flames please, just solutions.
Deleting the table was a mistake... Follow the instructions here to disable the mod: http://code.google.com/p/prettyurls/wiki/TroubleShooting
After you've done that we can see about the possibility of fixing it.

QuoteI have to ask... What about the file prettyurls-base_20080509.tar.gz on this link (http://code.google.com/p/prettyurls/downloads/list)?

Is it worth install this one or keep the old one?
At the moment 0.8.3 is probably fine for you. There aren't many big changes. The most important one is that it will now try to convert from more encodings.

QuoteSorry, I'm not quite sure what you mean?
Okay... copy the pretty_board_urls and pretty_board_lookup here for me, and then tell me which boards you want changed.

In the database? All there are that is present are:

smf2_pretty_urls_cache
smf2_pretty_topic_urls
FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


Dannii

No those settings will be in the settings table, smf2_settings in your case.
"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."

Fury Sting

I have this mod working, but my site has the Forum wrapped in a shell and it needs to stay in the same sub directory, not step down multiple imaginary sub directories liek this mod does with the URL.  I have implimented a rewrite on my main "brochure" pages ahat seperates each variable with a ~ instead of a / or a , like so many people use.  I can of course find how to change this in the .htaccess file, but I am wondering about having to modify anything in other places.

I searched on here to see if anyone else had asked.

Thanks,
Fury

concorde7

Quote from: Dannii on May 10, 2008, 12:56:36 AM
You won't break anything by checking the error logs!
and what am i looking for on the error logs? they are huge. but i can tell you this, on links ive made rto articles the link gives this error

Warning: main(C:\Inetpub\wwwroot\clan-less.com\wwwroot\smf/Settings.php) [function.main]: failed to open stream: No such file or directory in C:\Inetpub\wwwroot\clan-less.com\wwwroot\smf\index.php on line 51


and this is what i get when i go to the Pretty URLs in admin (which i expect there to be an error since i deleted the tables)

Fatal error: main() [function.require]: Failed opening required 'C:\Inetpub\wwwroot\clan-less.com\wwwroot\smf/Settings.php' (include_path='.;c:\php4.4\includes') in C:\Inetpub\wwwroot\clan-less.com\wwwroot\smf\index.php on line 51

Fatal error: admin() [function.require]: Failed opening required 'C:\Inetpub\wwwroot\clan-less.com\wwwroot\Sources/PrettyUrls.php' (include_path='.;c:\php4.4\includes') in C:\Inetpub\wwwroot\clan-less.com\wwwroot\Sources\Admin.php on line 133


my question is this, if these errors are a result of my deletion of the tables then should i just reinstall teh mod?

thanks so much for your help.

Dannii

You should try reinstalling the mod I suppose... yes. You are running Apache and not IIS?
"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."

Dannii

Quote from: Fury Sting on May 10, 2008, 01:48:22 PM
I have this mod working, but my site has the Forum wrapped in a shell and it needs to stay in the same sub directory, not step down multiple imaginary sub directories liek this mod does with the URL.  I have implimented a rewrite on my main "brochure" pages ahat seperates each variable with a ~ instead of a / or a , like so many people use.  I can of course find how to change this in the .htaccess file, but I am wondering about having to modify anything in other places.

I searched on here to see if anyone else had asked.

Thanks,
Fury
Hmmm, strange.
Well the filter functions construct the new URLs so you could edit those. If you use ~ or , as a delimiter, remove it from the list of allowed characters in Subs-PrettyUrls.php too.
"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."

Fury Sting

Cool thanks, I will look around in there.

Yeah I know my issues are strange. <G>  I built the main skin of the site to dynamically build the nav bar and other things based on the last sub directory in the URL.  Of course this was before I thought about anything like having to tweak it all for search engines.

Thanks!
Fury

2pac

in my website, this mod is affecting pages outside of the forum


for example, my forum is in a public_html/forum/ folder

and then i added a public_html/freeagency/ folder

so when i access my the free agency page like this:

http://myurl.com/freeagency/index.php

it works fine

but if i try to access like this:

http://myurl.com/freeagency/

it just goes to my frontpage and the url turns into this:

http://myurl.com/freeagency/?pretty;board=freeagency.0

how do i fix that?

Dannii

That can't happen unless you have a .htaccess file in the root directory?
"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."

concorde7

Quote from: Dannii on May 10, 2008, 05:13:26 PM
You should try reinstalling the mod I suppose... yes. You are running Apache and not IIS?
apache is linux? no i run windows so i guess i run IIS. i just read that i cannot use this mod because the server does not have .htaccess which is on apache and i have windows server so, anything else i can do  to fix my screw up? thanks again for the responses.

Dannii

I just checked, and you are indeed running IIS. Are you on shared hosting? If so there's nothing you can do unfortunately (except uninstall the mod). If you own the server you could install Apache (it does run on windows) or try something like this: http://www.micronovae.com/ModRewrite/ModRewrite.html
"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."

concorde7

Quote from: Dannii on May 11, 2008, 12:36:59 AM
I just checked, and you are indeed running IIS. Are you on shared hosting?
yes its shared so i think i will have to live without it.  so it wont shut me down again if i uninstall it? that script i ran before to fix it wont be undone?

Dannii

No once you uninstall it everything should still be fine.
"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."

2pac

Quote from: Dannii on May 10, 2008, 10:53:21 PM
That can't happen unless you have a .htaccess file in the root directory?

i think i did do a htaccess file once, im not sure though, it just kind of disappeared though, i couldnt see it on my cpanel after i put it there. how can i remove it?

L.G.S

Quote from: Dannii on May 10, 2008, 09:49:23 AM
No those settings will be in the settings table, smf2_settings in your case.

Easier said than done for me haha.

I'm in the table, what do I do? I tried BROWSE, but that didn't get me anything.
FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


Dannii

Quote from: 2pac on May 11, 2008, 05:16:25 AMi think i did do a htaccess file once, im not sure though, it just kind of disappeared though, i couldnt see it on my cpanel after i put it there. how can i remove it?
Try a proper FTP client.

Quote from: L.G.S on May 11, 2008, 06:52:17 AMEasier said than done for me haha.

I'm in the table, what do I do? I tried BROWSE, but that didn't get me anything.
Is it showing any of the settings? They'll probably be on the last page...
"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."

L.G.S

Quotea:95:{i:7;s:13:"announcements";i:197;s:8:"feedback";i:196;s:12:"intermission";i:200;s:13:"high-velocity";i:201;s:8:"join-up!";i:202;s:7:"results";i:203;s:11:"ppv-results";i:204;s:11:"raw-results";i:205;s:17:"smackdown-results";i:207;s:19:"roleplay-and-promos";i:125;s:21:"high-velocity-archive";i:131;s:10:"promo-area";i:132;s:10:"g-m-office";i:129;s:12:"sign-up-b129";i:176;s:26:"sign-up-created-superstars";i:144;s:8:"slashdot";i:73;s:12:"r-i-vote-off";i:188;s:20:"previous-tournaments";i:157;s:25:"r-i-vote-off-tournament-1";i:181;s:25:"r-i-vote-off-tournament-2";i:189;s:25:"r-i-vote-off-tournament-3";i:12;s:10:"staff-chat";i:158;s:17:"member-discussion";i:211;s:7:"deleted";i:175;s:13:"deleted-posts";i:208;s:15:"salvaged-topics";i:209;s:14:"salvaged-board";i:13;s:17:"the-chillout-zone";i:18;s:14:"spam-and-games";i:148;s:13:"member-photos";i:222;s:11:"board-games";i:15;s:12:"newbie-intro";i:115;s:13:"entertainment";i:218;s:11:"latest-news";i:221;s:15:"emcees-rap-news";i:116;s:12:"other-sports";i:219;s:16:"latest-news-b219";i:22;s:10:"technology";i:217;s:16:"latest-news-b217";i:19;s:14:"jokes-and-gags";i:220;s:12:"oddly-enough";i:38;s:8:"graphics";i:39;s:11:"gif-gallery";i:37;s:11:"gfx-request";i:74;s:13:"gfx-resources";i:69;s:14:"gfx-tournament";i:163;s:25:"previous-tournaments-b163";i:160;s:20:"r-i-gfx-tournament-4";i:161;s:7:"sign-up";i:121;s:20:"r-i-gfx-tournament-3";i:122;s:12:"sign-up-b122";i:71;s:20:"r-i-gfx-tournament-2";i:108;s:20:"r-i-gfx-tournament-1";i:70;s:15:"sign-up-in-here";i:40;s:11:"gfx-battles";i:51;s:16:"request-a-battle";i:23;s:8:"archives";i:212;s:16:"fantasy-football";i:213;s:27:"league-fixtures-and-results";i:214;s:31:"league-cup-fixtures-and-results";i:215;s:33:"player-profiles-and-stats-keeping";i:216;s:15:"transfer-market";i:52;s:15:"v-i-p-downloads";i:34;s:17:"request-downloads";i:32;s:31:"movie-video-and-music-downloads";i:66;s:5:"games";i:64;s:12:"applications";i:242;s:12:"site-updates";i:227;s:9:"rss-feeds";i:245;s:14:"private-forums";i:229;s:8:"football";i:225;s:5:"m-m-t";i:226;s:12:"video-gaming";i:246;s:19:"smackdown-vs-raw-08";i:233;s:9:"streaming";i:235;s:14:"the-board-room";i:236;s:15:"fixture-results";i:240;s:11:"last-season";i:241;s:18:"league-cup-results";i:234;s:15:"transfer-market";i:238;s:21:"scouting-plus-rumours";i:239;s:12:"sign-up-b239";i:237;s:11:"information";i:247;s:18:"user-feeback-polls";i:248;s:9:"wrestling";i:249;s:26:"ppv-results-and-discussion";i:250;s:16:"fantasy-football";i:251;s:33:"font-colorredguest-forumsfont";i:252;s:11:"guest-forum";i:253;s:12:"other-brands";i:254;s:15:"news-and-events";i:255;s:12:"music-videos";i:256;s:21:"gfx-tournament-5-2008";i:257;s:16:"gfx-tournament-5";i:258;s:11:"file-upload";}

I went through every page, and I didn't hava a lookup setting?

And now I know where to change the boards, is it just as simple as changing the names of them and saving?
FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


Dannii

There must be a lookup one... it should be near the other.

You can just edit them, however if you do remember to change the numbers too (the string lengths must be correct). You need to change the lookup array as well though, and I'd recommend adding the new URLs to the lookup array rather than replacing the old ones so that old links will work.

If you can find them... I'll do it I suppose.
"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."

L.G.S

Okay thanks for the help.

One other thing: I think this mod kinda killed one topic on my forum lol. It sounds stupid know, but I posted a link into a topic and now it always gives a blank page. I checked the error log, and it relates to Pretty URLS?




Database Error: Duplicate entry 'http://www.ruthlessintent.com' for key 1


INSERT INTO smf_pretty_urls_cache(url_id, replacement)
VALUES
('`Amarkasread;sa=topic;t=158718;topic=77924.0', 'http://www.ruthlessintent.com/board/technology/the-most-useful-websites-evaaaar/?action=markasread;sa=topic;t=158718'),
('http://www.ruthlessintent.com', 'http://www.ruthlessintent.com'),
('`Areporttm;topic=77924.5;msg=158621', 'http://www.ruthlessintent.com/board/technology/the-most-useful-websites-evaaaar/5/?action=reporttm;msg=158621'),
('`Atrackip;searchip=86.131.60.75', 'http://www.ruthlessintent.com/board/trackip/?searchip=86.131.60.75'),
('`Aeditpoll;add;topic=77924.0', 'http://www.ruthlessintent.com/board/technology/the-most-useful-websites-evaaaar/?action=editpoll;add'),
('`Amovetopic;topic=77924.0', 'http://www.ruthlessintent.com/board/technology/the-most-useful-websites-evaaaar/?action=movetopic'),
('`Aremovetopic2;topic=77924.0', 'http://www.ruthlessintent.com/board/technology/the-most-useful-websites-evaaaar/?action=removetopic2'),
('`Alock;topic=77924.0', 'http://www.ruthlessintent.com/board/technology/the-most-useful-websites-evaaaar/?action=lock'),
('`Asticky;topic=77924.0', 'http://www.ruthlessintent.com/board/technology/the-most-useful-websites-evaaaar/?action=sticky'),
('`Amergetopics;board=22.0;from=77924', 'http://www.ruthlessintent.com/board/technology/?action=mergetopics;from=77924')
Apply Filter: Only show the errors from this file
File: /home/public_html/board/Sources/QueryString.php
Line: 609
FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


Advertisement: