News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Pretty URLs

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

Previous topic - Next topic

Dannii

ankur0101, can you check with repair_settings.php that everything is correct?

neverhurry, these is no extension-none package anymore, those are very outdated instructions. Check the first post!
"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."

deZio

Quote from: lorenzone92 on June 04, 2008, 09:41:05 AM
Quote from: Dannii on June 04, 2008, 09:37:08 AM
Are you still trying to move it to the sub domain?
I've already moved my forum to the subdomain, you can see it here: http://forum.rockciclopedia.com

When I (and all the users) try login, they receive this error:
You were unable to login. Please check your cookie settings.

Seems you can't login but if you click on "back" lin you're logged in already...
Strange!

And, as I wrote, qhen the error is displayed the URL is this:
/profile/?pretty;action=login2&sa=check
It seems the check of the url is wrong but the user is logged in anyway...
Hello! I have this error on my forum too. When I disable action rewrite, it works, but with action rewrite enabled, it shows this error and user gets logged in. I have installed latest version and error still exist, so I have disable action rewrite... :(

Dannii

http://code.google.com/p/prettyurls/issues/detail?id=32#c4

Can you check the subdomain settings like chinkyjew suggests?
"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."

twilightpoint

How do you enable the Filters page?

Here's my forum: hxxp:taylorswiftforum.com [nonactive]

I installed the package correctly but I think I have to enable it first.

Pat

Dannii

You go to the new page, or index.php?action=admin;area=pretty if for some reason it doesn't show in your admin menu.
"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."

ferlo

hello,

I'm running SMF 2.0rc1.

I've installed the pretty urls module.
I noticed that it does not rewritest the URL using www in front of domain name. and this could cause an error when submitting a sitemap to G.

In G, site is registered as WWW
Sitemap produces www urls
Pretti urls produces url rewrite without www

this is against SEO...

any suggestion?

pastramirye

ferlo,
I had a similar issue - see previous posts.
Try this - http://download.simplemachines.org/index.php?thanks;filename=repair_settings.php
Check paths.
Regards.

Dannii

Pretty URLs will use whatever $boardurl is set to. Please check that it is correct. :)
"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."

phpMyTony

Does this take up many server resources?

AlphaHot1

Quote from: AlphaHot1 on March 19, 2009, 01:43:32 PM
I've added a couple of modifications, namely in .htaccess:

*removed index.php at the end of the url
*removed www at the beginning of the url
*added a trailing slash to every url it doesn't end with a filename extension

...
To remove PHPSESSID try:

# remove PHPSESSID
RewriteCond %{QUERY_STRING} ^PHPSESSID=.*$
RewriteRule ^(.*)$ %{REQUEST_URI}? [L,R=301]

RewriteCond %{QUERY_STRING} ^(.*)&PHPSESSID=.*$
RewriteRule ^(.*)$ %{REQUEST_URI}?%1 [L,R=301]


and if you use feedburner, you may want to rewrite your feeds too:

# rewrite feeds
RewriteCond %{HTTP_USER_AGENT} !FeedBurner
RewriteCond %{QUERY_STRING} ^type=rss;action=\.xml$
RewriteRule ^.*$ http://feeds2.feedburner.com/your-address? [R,L]

Özgür

0.9.2 have a javascript bug.

All javascript function seem like this
site.com/forum2/stats/onclick="yearElements[2009].toggle();

This bug in PrettyUrls-Filters.php.
So Long

Dannii

Quote from: ஜ۩۞۩ஜ on March 28, 2009, 01:01:56 PM
Does this take up many server resources?
Many is relative... it takes up some, but is also quite efficient for what it does.

Quote from: Özgür´ on March 28, 2009, 10:22:04 PM
0.9.2 have a javascript bug.

All javascript function seem like this
site.com/forum2/stats/onclick="yearElements[2009].toggle();

This bug in PrettyUrls-Filters.php.
Looks like you have the same problem as http://code.google.com/p/prettyurls/issues/detail?id=60
Which would mean it's your bug not mine ;) Check your html is valid.
"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."

Özgür

Quote from: Dannii on March 28, 2009, 10:36:14 PM
Quote from: ஜ۩۞۩ஜ on March 28, 2009, 01:01:56 PM
Does this take up many server resources?
Many is relative... it takes up some, but is also quite efficient for what it does.

Quote from: Özgür´ on March 28, 2009, 10:22:04 PM
0.9.2 have a javascript bug.

All javascript function seem like this
site.com/forum2/stats/onclick="yearElements[2009].toggle();

This bug in PrettyUrls-Filters.php.
Looks like you have the same problem as http://code.google.com/p/prettyurls/issues/detail?id=60
Which would mean it's your bug not mine ;) Check your html is valid.

My site is valid. http://validator.w3.org/check?uri=http%3A%2F%2Fwww.nabruk.com%2Fforum2%2F&charset=(detect+automatically)&doctype=Inline&group=0
So why the problem is resolved i change PrettyUrls-Filters.php (0.9.2 to 0.9.1)?
I use to 0.9.1 PrettyUrls-Filters.php and work fine no javascript fault , no other problem.

So Long

ferlo



Dannii

Quote from: Özgür´ on March 29, 2009, 06:39:29 AM
My site is valid. http://validator.w3.org/check?uri=http%3A%2F%2Fwww.nabruk.com%2Fforum2%2F&charset=(detect+automatically)&doctype=Inline&group=0
So why the problem is resolved i change PrettyUrls-Filters.php (0.9.2 to 0.9.1)?
I use to 0.9.1 PrettyUrls-Filters.php and work fine no javascript fault , no other problem.
Your site has at least 16 errors...
And I changed some of the code a little (related to the email rewriting). I guess it's more picky now.

Quote from: ferlo on March 29, 2009, 07:26:03 AM
Quote from: pastramirye on March 28, 2009, 07:47:30 AM
Try this - http://download.simplemachines.org/index.php?thanks;filename=repair_settings.php
paths are ok.
reapair_settings.php unuseful.
the whole site is www.sitename.com but boards and topics are just sitename.com
Then did you follow the second section of the trouble shooting 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."

Özgür

I solve all problem.. but issue still again..
My index.template and boardIndex have no xhtml error
http://www.nabruk.com/forum2/stats/

http://validator.w3.org/check?uri=http%3A%2F%2Fwww.nabruk.com%2Fforum2%2Fstats%2F&charset=(detect+automatically)&doctype=Inline&ss=1&outline=1&group=1&No200=1&verbose=1&st=1&user-agent=W3C_Validator%2F1.654

  •                            Line 21,                               column 45:                               XML Parsing Error:  AttValue: " or ' expected                               
    ...el="stylesheet" type="text/css" href=http://www.nabruk.com/forum2/Themes/Refe
                            


But my code is

   echo '
   <link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/style.css?rc1" />';


Maybe PrettyUrls remove  "  character.
So Long

Dannii

#3317
Argh, yes it has. That's bad. I'll fix it, hopefully tomorrow.
"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."

Özgür

Thanks =) I change my prettyurls-filters.php now. (0.9.2 to 0.9.1)
So Long

Dannii

In the 0.9.2 PrettyUrls-Filters.php if you change $addQuotes = preg_match('~[\"\']$~', $matches[1]); to $addQuotes = preg_match('~^<.+[\"\']~', $matches[1]); does it help? (Run maintenance after doing so.)
"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: