Pretty URLs

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

Previous topic - Next topic

L'AltroWeb

Is strange but now after maintenance my htaccess contain only one 0  :(
Thanks for your time ;)

SergeantAsh

Thanks Dannii, will give you more information next time it occurs.
Quote"Moderation has been called a virtue to limit the ambition of great men, and to console undistinguished people for their want of fortune and their lack of merit."

tdot

Quote from: Dannii on January 29, 2009, 08:37:42 AM

Quote from: tdot on January 28, 2009, 03:03:56 AM
I have a bizarre problem and wondering if anyone has run into this.

The mod installs fine and every page works like it should EXCEPT the private message page.  When i click on the link to that page I just get a blank white page with no information and no error messages.  If  I unselect  the pretty urls admin setting 'enable URL rewritting' I can reach my private messages.  If i turn on URL rewritting, and even unselect the 'action' button, the PM area is still white

any suggestions?
Anything in the smf or apache error logs?


[/quote]
thanks for all the replies!

no, nothing either place :(

SergeantAsh

#2963
Ahhhh, it just happened, the URL in my 'Topic Updated' email was...

http://www.*************.co.uk/index.php?topic=11.new;topicseen#new

Upon clicking on it, it converted it to:

http://www.*************.co.uk/nadejah-williams/video-nadejah-williams's-intro-video-on-c4/new/?PHPSESSID=5tg2qruqpmaiudikiso59mpvd4;topicseen

At which point the browser said...

Service Temporarily Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.


I managed to eventually get to the update topic itself by REMOVING this bit at the end of the changed URL

PHPSESSID=5tg2qruqpmaiudikiso59mpvd4;topicseen

What do you think?
Quote"Moderation has been called a virtue to limit the ambition of great men, and to console undistinguished people for their want of fortune and their lack of merit."

cassie

#2964
Dannii...I may have asked before but do I need to uninstall the current version before uploading and installing the new 0.9 version. I have 0.8.4 now.

ffingers

@Dannii

no see i did not have pretty urls installed before i switched over the forum....

the thing is....the directory structure is the same...only the domain directs straight to the /forum folder.....

that troubleshooting doesn't seem like it will help

<?php
require_once(dirname(__FILE__) . '/SSI.php');
updateSettings(array('pretty_root_url' => $boardurl));
?>


as my boardurl i believe would still be forum/index.php....rather...i need pretty urls to see it as just index.php without the forum....

where in  pretty urls does it create the link or from what variables

JoshieDaMan

I don't know the code to enable the filter, I mean I am confused here. How to filter it?

Dannii

Quote from: Dark-Wolf on January 29, 2009, 08:50:17 AM
Is strange but now after maintenance my htaccess contain only one 0  :(
Thanks for your time ;)
What do you mean? It's just a single '0'?

Quote from: tdot on January 29, 2009, 09:36:42 AM
no, nothing either place :(
http://www.simplemachines.org/community/index.php?topic=146969.msg1896493#msg1896493 follow my instructions in this post to JoshieDaMan, except changing the actions you want of course.

Quote from: @sh on January 29, 2009, 10:34:20 AM
Ahhhh, it just happened, the URL in my 'Topic Updated' email was...

http://www.*************.co.uk/index.php?topic=11.new;topicseen#new

Upon clicking on it, it converted it to:

http://www.*************.co.uk/nadejah-williams/video-nadejah-williams's-intro-video-on-c4/new/?PHPSESSID=5tg2qruqpmaiudikiso59mpvd4;topicseen

At which point the browser said...

Service Temporarily Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.


I managed to eventually get to the update topic itself by REMOVING this bit at the end of the changed URL

PHPSESSID=5tg2qruqpmaiudikiso59mpvd4;topicseen

What do you think?
Well this is a bug I've wanted to fix for a while, but I don't have a lot of time to do so. Is every email broken?

Quote from: cassie on January 29, 2009, 10:39:59 AM
Dannii...I may have asked before but do I need to uninstall the current version before uploading and installing the new 0.9 version. I have 0.8.4 now.
Yes. If you'd tried installing 0.9 you would have seen lots of errors ;)

Quote from: ffingers on January 29, 2009, 10:45:19 AM
@Dannii

no see i did not have pretty urls installed before i switched over the forum....

the thing is....the directory structure is the same...only the domain directs straight to the /forum folder.....

that troubleshooting doesn't seem like it will help

<?php
require_once(dirname(__FILE__) . '/SSI.php');
updateSettings(array('pretty_root_url' => $boardurl));
?>


as my boardurl i believe would still be forum/index.php....rather...i need pretty urls to see it as just index.php without the forum....

where in  pretty urls does it create the link or from what variables
Did you try it? It sets it to $boardurl, the same URL you access your forum from.

Quote from: JoshieDaMan on January 29, 2009, 04:51:56 PM
I don't know the code to enable the filter, I mean I am confused here. How to filter it?
http://code.google.com/p/prettyurls/downloads/list Download the extras package, install it in your forum and then enable the new filter in the pretty urls settings 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'AltroWeb

Quote from: Dannii on January 30, 2009, 08:56:20 PM
Quote from: Dark-Wolf on January 29, 2009, 08:50:17 AM
Is strange but now after maintenance my htaccess contain only one 0  :(
Thanks for your time ;)
What do you mean? It's just a single '0'?
Yes! Empty htaccess with just a single 0  :-[

Dannii

Oops. Replace += with .=
"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'AltroWeb

#2970
Quote from: Dannii on January 30, 2009, 10:08:01 PM
Oops. Replace += with .=
Thank'u very very much!
Now is perfect (with this simply to best indent) ;)
-
Final edit this:
$htaccess = str_replace('#ACTIONS', $actions_rewrite, $htaccess);
}

// Output the file
$handle = fopen($boarddir . '/.htaccess', 'w');

to this:
      $htaccess = str_replace('#ACTIONS', $actions_rewrite, $htaccess);
   }

   $htaccess .= '

# beginning of directives for Apache Error Handling modification
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*)  /forum/index.php?action=error;code=404
ErrorDocument 400 /forum/index.php?action=error;code=400
ErrorDocument 401 /forum/index.php?action=error;code=401
ErrorDocument 402 /forum/index.php?action=error;code=402
ErrorDocument 403 /forum/index.php?action=error;code=403
ErrorDocument 404 /forum/index.php?action=error;code=404
ErrorDocument 405 /forum/index.php?action=error;code=405
ErrorDocument 406 /forum/index.php?action=error;code=406
ErrorDocument 407 /forum/index.php?action=error;code=407
ErrorDocument 408 /forum/index.php?action=error;code=408
ErrorDocument 409 /forum/index.php?action=error;code=409
ErrorDocument 410 /forum/index.php?action=error;code=410
ErrorDocument 411 /forum/index.php?action=error;code=411
ErrorDocument 412 /forum/index.php?action=error;code=412
ErrorDocument 413 /forum/index.php?action=error;code=413
ErrorDocument 414 /forum/index.php?action=error;code=414
ErrorDocument 415 /forum/index.php?action=error;code=415
ErrorDocument 416 /forum/index.php?action=error;code=416
ErrorDocument 417 /forum/index.php?action=error;code=417
ErrorDocument 500 /forum/index.php?action=error;code=500
ErrorDocument 501 /forum/index.php?action=error;code=501
ErrorDocument 502 /forum/index.php?action=error;code=502
ErrorDocument 503 /forum/index.php?action=error;code=503
ErrorDocument 504 /forum/index.php?action=error;code=504
ErrorDocument 505 /forum/index.php?action=error;code=505
# end of directives for Apache Error Handling modification
';

   //   Output the file
   $handle = fopen($boarddir . '/.htaccess', 'w');
  :)

freworld

Quote
Quote
Quote from: freworld on January 24, 2009, 12:28:16 PM
    Hi danni
    i tried asking at dev.eldacar link but seem it not working!So posting here!
    Petty url is doing fine overall till now
    But there is a PROBLEM
    A specific Topic link  in my board is not working .  It just redirects to my hosts  page with ads.
    i remember i changed the Topic heading while trying to change its url. May be that caused it to go off.
    I tried that help by you regarding truncate query for flushing url table .
    & the ran maintanence. Now that topic url is changed to topic name but thread not appearing.
    Seems like tht topic link has broken something in database.
    Kindly guide how can i fix a thread link as its a good thread with some helping info for members.
    Even if you think, its no due to pretty url's, help will be really helpful!
Can you give me the actual links that are broken? I can't help you otherwise.

Hi danni
in response to my query & ur reply,
i have send you a pm !
please check

Regards

glennk

Hi Danni,

Im currently getting a few errors in webmaster tools. They are flagged up as

"urls not followed"

This is one of the ones it says not followed.

http://www.whitbyseaanglers.co.uk/forum/site-reviews-and-links/sandsend-car-park/0/

The reason given is "Redirect Error".




Dannii

I can't see anything wrong with it... perhaps it was a glitch? Let me know if it's still got problems next time the spider comes.
"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."

SergeantAsh

QuoteWell this is a bug I've wanted to fix for a while, but I don't have a lot of time to do so. Is every email broken?

Not all Dannii, but most - would it not be a quick fix to stop it adding the sessionID parameter onto the end as that seems to be the problem here?
Quote"Moderation has been called a virtue to limit the ambition of great men, and to console undistinguished people for their want of fortune and their lack of merit."

Dannii

No, that's something SMF does itself all the time... whenever you visit a page it adds the sessionID parameter until it can confirm that you have cookies. I don't want to touch that code.
"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."

SergeantAsh

Ohhhh, bugger.

This is a real pain as email notifications just aren't working, if a member sees an error, they're generally not wise enough to remove the sessionid and so just assume the site is down  :(  what can we do?
Quote"Moderation has been called a virtue to limit the ambition of great men, and to console undistinguished people for their want of fortune and their lack of merit."

Dannii

I don't know sorry, I've never had this problem myself. Have you asked your host for more information and help about the error?
"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."

SergeantAsh

I really don't think that its a host related error, never seen a 503 before so something there is causing it - is it not the Mod Rewrite trying to rewrite the Session ID parameter of the querystring perhaps?
Quote"Moderation has been called a virtue to limit the ambition of great men, and to console undistinguished people for their want of fortune and their lack of merit."

Dannii

Well when only 2 or 3 people out of the thousands that have used this mod have this problem I think there's good reasons to suspect the host... there's possibly some weird security module installed which won't let redirects add sessions or something.
"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."

Advertisement: