News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Pretty URLs

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

Previous topic - Next topic

Chriss Cohn

Back in 2008 i had the software in use called "SEO4SMF". This was done by a guy from eastern europe. He had a neat little developer Forums and the Software he was doing was top notch.
It seems the mod is now dead and VBGAMER owns the name "SEO4SMF"? Is that correct? What happened with the original one? It was such a good software with many SEO things on top of human friendly URLs.

vbgamer45

Often just left and that was it. Happens a lot people can bored and move on to other projects.
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

Chriss Cohn

Quote from: vbgamer45 on November 30, 2015, 07:45:14 PM
Often just left and that was it. Happens a lot people can bored and move on to other projects.
Thanks, so is your mod doing all those features of the old SEO4SMF? If not, cant we just revive it and make it run with 2.x ?
I might have an old version still on my PC somewhere

Kindred

no. The license for 1.1.x mods (and some 2.0.x mods does not allow re-release or redistribution of modified code by anyone other than the original author
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Cheat

#7344
Does anyone know how to get the links on the forum to output user URLs as IDs? (/profile/1/ instead of /profile/user/)? I understand .htaccess rewrites, but I can't find where the mod changed all the urls to that structure on the forum.

EDIT: I figured it out myself. For those who are wanting the same thing, here you go (it's really easy):

in .htaccess

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


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


in /Sources/PrettyUrls-Filters.php

Find
$memberNames[$row['id_member']] = rawurlencode($row['member_name']);

Replace
$memberNames[$row['id_member']] = rawurlencode($row['id_member']);

Done. :)
Sep7agon.net [nofollow] | Off-topic and Gaming Site

MESWEB

This mod messed up my forum. I have SSL connection + this mod + rewrite rules for SSL
RewriteCond %{HTTPS} !on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
RewriteBase /


I can't make new messages, posts, edit posts.
All of my links don't have https.
Any help please.

vbgamer45

I haven't tested it with SSL. Follow the links in the top of the of this totpic to disable it.
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

MESWEB

I want use SSL so why I need to disable it? I saw some issues. Links coding has changed from:
prettyurl/?action=post;msg=385
to
prettyurl/?action=post%3bmsg=385
Encodind and decoding issue.

vbgamer45

If the mod isn't working for your forum you should disable it. I haven't tested with SSL use at your own risk.
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

ZamaTata

I just noticed that when installed pretty urls last week wen I had images in the board name i.e.<img> tags etc.. when I enabled it the url also included the img tags.. any i have removed the images fron the board names and left only text names.. installed again the pretty urls but it still shows the urls with image tag in it.
where can I clean the old urls so pretty urls can be generated again?

fyi.. I dif download the revertor, uploaded it but I don't see Install mod option, only list files and delete.. hiw can I use that?

I have now disabled pretty urls, uninstalled it, but haven't deleted the .htacess and database tables yet..

regards

vbgamer45

Under Admin -> Boards
With pretty urls installed there is a pretty urls link to modify the board url
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

Kindred

yet another reason why you should NEVER include HTML in the board name
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

ZamaTata

@vbgamer Thanks

@kindred Yep Lessonn learned ;) thanks for your warning..

Kitarist

Hey guys does anyone know how to add that the pretty urls also shows the parent main board at the start of the url instead of just showing subtopic and topic ?


cieplutki

Hi,
how to change:
Quote/index.php?action=community
to
Quote/community/

I use PortaMx 1.54 and Pretty URLs
please help
Regards




.

vbgamer45

It should do it automatically if you have rewrite actions enabled.
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

cieplutki

I turned on

my htacces
# PRETTYURLS MOD BEGINS
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: December 22, 2015, 18:00

RewriteEngine on
RewriteBase /

# Rules for: actions
RewriteRule ^(activate|admin|announce|attachapprove|buddy|calendar|clock|collapse)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(coppa|contact|credits|deletemsg|display|dlattach|editpoll|editpoll2)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(emailuser|findmember|groups|help|gallery|helpadmin|im|jseditor)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(jsmodify|jsoption|lock|lockvoting|login|login2|logout|markasread)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(mergetopics|mlist|moderate|modifycat|modifykarma|movetopic|movetopic2|notify)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(notifyboard|openidreturn|pm|post|post2|printpage|profile|quotefast)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(quickmod|quickmod2|recent|register|register2|related|reminder|removepoll)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(removetopic2|reporttm|requestmembers|restoretopic|search|search2|sendtopic|sitemap)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(smstats|suggest|spellcheck|splittopics|SMFQuiz|SMFQuizAnswers|SMFQuizStart|SMFQuizEnd)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(SMFQuizQuestions|SMFQuizDispute|SMFQuizAjax|SMFQuizExport|stats|sticky|theme|topicsolved)/?$ ./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

RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]

RewriteCond %{REQUEST_URI} ^/index.php$
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^(.*)$ http://ewmapa.pl/ [L,R=301] 

#Stop Bandwidth Theft from
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://(.+\.)?ewmapa\.pl/ [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteRule .*\.(jpe?g|gif|bmp|png)$ http://ewmapa.pl/hlsteal.png [L]

# Sitemap
RewriteRule ^sitemap.xml$ /index.php?action=sitemap;xml


and screen on attach




.

AllMassive

Quote from: MESWEB on December 13, 2015, 08:28:11 AM
This mod messed up my forum. I have SSL connection + this mod + rewrite rules for SSL
...
I can't make new messages, posts, edit posts.
All of my links don't have https.
Any help please.

Look into your SMF-Database for 'smf_settings'.Change the variable 'pretty_root_url' to https.
You need to disable/enable the url-rewriting once afterwards.

MESWEB

#7358
Quote from: AllMassive on December 26, 2015, 12:20:00 PM
You need to disable/enable the url-rewriting once afterwards.
Can You show me How .htaccess should looks like? For https and actions.
[Edit]
looks like working but I see issue:
home url is http not https

vbgamer45

[code
# PRETTYURLS MOD BEGINS
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: December 22, 2015, 18:00

RewriteEngine on
RewriteBase /

# Rules for: actions
RewriteRule ^(activate|admin|announce|attachapprove|buddy|calendar|clock|collapse)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(coppa|contact|credits|deletemsg|display|dlattach|editpoll|editpoll2)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(emailuser|findmember|groups|help|gallery|helpadmin|im|jseditor)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(jsmodify|jsoption|lock|lockvoting|login|login2|logout|markasread)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(mergetopics|mlist|moderate|modifycat|modifykarma|movetopic|movetopic2|notify)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(notifyboard|openidreturn|pm|post|post2|printpage|profile|quotefast)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(quickmod|quickmod2|recent|register|register2|related|reminder|removepoll)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(removetopic2|reporttm|requestmembers|restoretopic|search|search2|sendtopic|sitemap)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(smstats|suggest|spellcheck|splittopics|SMFQuiz|SMFQuizAnswers|SMFQuizStart|SMFQuizEnd)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(SMFQuizQuestions|SMFQuizDispute|SMFQuizAjax|SMFQuizExport|stats|sticky|theme|topicsolved)/?$ ./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

Advertisement: