News:

Wondering if this will always be free?  See why free is better.

Main Menu

Pretty URLs

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

Previous topic - Next topic

vbgamer45

First check your forum's error log and let me know if there are errors listed that might be related.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

L1F3

#4961
Error:
?pretty;board=pamokos;topic=(pamoka)-gui-registracija-ir-prisijungimas-0-3.30&action=deletemsg;msg=6669;c55ae7e4e6a7=559d805428b0403c1b515baa61c42c93

2: Header may not contain more than a single header, new line detected.

Azrael1

Quote from: vbgamer45 on February 21, 2010, 04:30:40 PM
Can you post your .htaccess file?

For an information, i get the following Error-Information:
QuoteThe requested URL /forum/profile/Calamaru/ was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Ok, and here is the .htacces of the folder /forum/

Quote


# PRETTYURLS MOD BEGINS
# Pretty URLs mod
# http://code.google.com/p/prettyurls/ [nofollow]
# .htaccess file generated automatically on: February 22, 2010, 23:18

RewriteEngine on
RewriteBase /forum

# Rules for: profiles
RewriteRule ^profile/([^/]+)/?$ ./index.php?pretty;action=profile;user=$1 [L,QSA]

# Rules for: actions
RewriteRule ^(activate|admin|ads|announce|attachapprove|buddy|buddypage|buddypage)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(calendar|chat|chat|clock|collapse|coppa|credits|deletemsg)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(display|dlattach|dlpmattach|editpoll|editpoll2|emailuser|findmember|groups)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(help|globalhf|helpadmin|im|jseditor|jsmodify|jsoption|lock)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(lockvoting|login|login2|logout|markasread|mergetopics|media|mgallery)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(mlist|moderate|modifycat|modifykarma|movetopic|movetopic2|notify|notifyboard)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(notepad|openidreturn|pm|post|post2|printpage|profile|quotefast)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(quickmod|quickmod2|recent|register|register2|reminder|removepoll|removetopic2)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(reporttm|requestmembers|restoretopic|search|search2|websearch|sendtopic|sitemap)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(smstats|suggest|spellcheck|splittopics|stats|sticky|theme|teampage)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(trackip|about:mozilla|about:unknown|unread|unreadreplies|verificationcode|viewprofile|vote)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(viewquery|viewsmfile|who|\.xml|xmlhttp)/?$ ./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]

# PRETTYURLS MOD ENDS


and if it would be usefull, this ist the .htaccess of the main root.
Quote<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /

# BEGIN Host Rewriting
RewriteCond %{HTTP_HOST} !^www\.wiemaikai\.de$ [NC]
RewriteRule ^(.*)$ http://www.wiemaikai.de/$1 [nofollow] [R=301,L]
# END Host Rewriting

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress
</IfModule>

vbgamer45

Does anything work with pretty urls or is it just an issue with profiles?
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Azrael1

Quote from: vbgamer45 on February 22, 2010, 05:24:51 PM
Does anything work with pretty urls or is it just an issue with profiles?

no, nothing works with prety urls. There will be allways an 404 with the specific rewrite text. Profile was only an example.
i still asked my provider if mode rewrite and per direcotry is on - he said it is all turned on.

vbgamer45

Try adding this to your root after
#END Wordpress

# PRETTYURLS MOD BEGINS
# Pretty URLs mod
# http://code.google.com/p/prettyurls/ [nofollow]
# .htaccess file generated automatically on: February 22, 2010, 23:18

RewriteEngine on
RewriteBase /forum

# Rules for: profiles
RewriteRule ^profile/([^/]+)/?$ ./index.php?pretty;action=profile;user=$1 [L,QSA]

# Rules for: actions
RewriteRule ^(activate|admin|ads|announce|attachapprove|buddy|buddypage|buddypage)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(calendar|chat|chat|clock|collapse|coppa|credits|deletemsg)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(display|dlattach|dlpmattach|editpoll|editpoll2|emailuser|findmember|groups)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(help|globalhf|helpadmin|im|jseditor|jsmodify|jsoption|lock)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(lockvoting|login|login2|logout|markasread|mergetopics|media|mgallery)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(mlist|moderate|modifycat|modifykarma|movetopic|movetopic2|notify|notifyboard)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(notepad|openidreturn|pm|post|post2|printpage|profile|quotefast)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(quickmod|quickmod2|recent|register|register2|reminder|removepoll|removetopic2)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(reporttm|requestmembers|restoretopic|search|search2|websearch|sendtopic|sitemap)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(smstats|suggest|spellcheck|splittopics|stats|sticky|theme|teampage)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(trackip|about:mozilla|about:unknown|unread|unreadreplies|verificationcode|viewprofile|vote)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(viewquery|viewsmfile|who|\.xml|xmlhttp)/?$ ./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]

# PRETTYURLS MOD ENDS
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Azrael1

Quote from: vbgamer45 on February 22, 2010, 05:53:20 PM
Try adding this to your root after
#END Wordpress

# PRETTYURLS MOD BEGINS
# Pretty URLs mod
# http://code.google.com/p/prettyurls/ [nofollow]
# .htaccess file generated automatically on: February 22, 2010, 23:18

RewriteEngine on
RewriteBase /forum

# Rules for: profiles
RewriteRule ^profile/([^/]+)/?$ ./index.php?pretty;action=profile;user=$1 [L,QSA]

# Rules for: actions
RewriteRule ^(activate|admin|ads|announce|attachapprove|buddy|buddypage|buddypage)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(calendar|chat|chat|clock|collapse|coppa|credits|deletemsg)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(display|dlattach|dlpmattach|editpoll|editpoll2|emailuser|findmember|groups)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(help|globalhf|helpadmin|im|jseditor|jsmodify|jsoption|lock)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(lockvoting|login|login2|logout|markasread|mergetopics|media|mgallery)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(mlist|moderate|modifycat|modifykarma|movetopic|movetopic2|notify|notifyboard)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(notepad|openidreturn|pm|post|post2|printpage|profile|quotefast)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(quickmod|quickmod2|recent|register|register2|reminder|removepoll|removetopic2)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(reporttm|requestmembers|restoretopic|search|search2|websearch|sendtopic|sitemap)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(smstats|suggest|spellcheck|splittopics|stats|sticky|theme|teampage)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(trackip|about:mozilla|about:unknown|unread|unreadreplies|verificationcode|viewprofile|vote)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(viewquery|viewsmfile|who|\.xml|xmlhttp)/?$ ./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]

# PRETTYURLS MOD ENDS


i tried it, but it still won't work. :-(

Dannii

I'd suggest putting it before the wordpress section. Wordpress tries to eat anything it can... Pretty URLs is more selective.

You'd want to remove the RewriteBase /forum line and add forum/ to the beginning of all the following lines.
"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."

L1F3

Quote from: L1F3 on February 22, 2010, 10:02:17 AM
Error:
?pretty;board=pamokos;topic=(pamoka)-gui-registracija-ir-prisijungimas-0-3.30&amp;action=deletemsg;msg=6669;c55ae7e4e6a7=559d805428b0403c1b515baa61c42c93

2: Header may not contain more than a single header, new line detected.

So, What about my problem? Any suggestions?

playdiune

Sometimes when i am posting something an error happens.

When i click to save the new post, i get this error;

Duplicate entry '5540' for key 'PRIMARY'
Ficheiro: /home2/newdigi3/public_html/Sources/PrettyUrls-Filters.php
Linha: 290

Is there a solution ?
My personal forum is now improving thanks to the Power of SMF

http://www.new-digital.net

blue_shadow

Sorry if this has been asked before, but I can't read through 250 pages. I try to enable rewriting, and it brings up the dialog with some test links, but none of them work. Sorry, but I didn't know what other information to provide.

Bruno36

Quote from: Bruno36 on October 25, 2009, 05:51:49 AM
Hello!

Simple Image Upload does not work with the mod pretty url
I have an error message

Not Found

The requested URL /general-discussion/retrtretre/addform.html was not found on this server.
Bruno36 the French
SMF 2.0.9

Brido

I have posted and just uploaded prettyurls, the problem is that i can visit most html pages but can't visit my ACP.

Would anyone have suggestions how to solve this problem out.

Thank you  in advance

Miasma

Hi. I'm using PrettyUrls and Simpleportal mods.
This is how my addresses look like:
exmple.com/  - portal
example.com/forum/  - forum
example.com/boardname/  - board

This is so not search engine friendly i believe, so i'm wondering how could i make it so that the board address would be "example.com/forum/boardname"

Could it be possible with some simple htaccess edit? Can anyone help?

Angelotus

#4974
VBgamer, I have really big issues with this, I hope you can help me out.

After installing the mod (I didn't got any errors while installing) al my links are broken, ALL of my links. Even in the admin section everything is broken now. I can't uninstall, I can't do anything anymore.

I really need help with this, my whole site is broken now!!!!!!!!!


Update:
I manually uninstalled the package. My boards are fine now.


The problem was, that all links where messed up, there where no actions, subactions etc found in the links. Example:
http://www.mypicas.com/1/index.php?action;sa;id;=admin


It got all messed up and nothing worked anymore, even all forms didn't worked...
Any clues how to solve this, so I can install this mod?

Miasma


vbgamer45

Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Angelotus

Quote from: Angelotus on February 26, 2010, 04:43:00 AM
VBgamer, I have really big issues with this, I hope you can help me out.

After installing the mod (I didn't got any errors while installing) al my links are broken, ALL of my links. Even in the admin section everything is broken now. I can't uninstall, I can't do anything anymore.

I really need help with this, my whole site is broken now!!!!!!!!!


Update:
I manually uninstalled the package. My boards are fine now.


The problem was, that all links where messed up, there where no actions, subactions etc found in the links. Example:
http://www.mypicas.com/1/index.php?action;sa;id;=admin


It got all messed up and nothing worked anymore, even all forms didn't worked...
Any clues how to solve this, so I can install this mod?

vbgamer45

Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

massdog.com

Quote from: vbgamer45 on February 01, 2010, 09:49:34 AM
Maddog my guess for some of those errors you have your language is set to English-utf8 go to Admin -> Server Settings and under language make sure it is set to just English.
it doesnt work
still error
Please help me  :P
3 months with this error

Advertisement: