News:

Join the Facebook Fan Page.

Main Menu

Pretty URLs

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

Previous topic - Next topic

AntonioTiempo

I have updated my forum from SMF 2.0.13 to SMF 2.1.4I have downloaded the plugin PrettyURL4.1 since seo4smf is no longer available and I have tried to leave the URLs
the same so as not to lose positioning in Google but I can't. How can I make them
the same? I have tried the plugins hxxp:reverter.zip [nonactive], hxxp:prettyurlsseo4smf.zip [nonactive] and hxxp:prettyurls-extras-1.0.zip [nonactive] but
none of them have worked. I work with PHP 8.2. Thank you for your time and help!!
In production it looks like this: hxxp:foro.tiempo.com/temas-salvados-b93.0/ [nonactive] while in local it looks like this: hxxp:local-foro.tiempo.com/temas-salvados-93/ [nonactive]

Plus

after installing this mod .

https://www.turkishairforce.org/index.php?pretty;action=profile&u=4959;sslRedirect
 /home/tshkk/public_html/Sources/Subs.php (Satır 4633)



2: foreach() argument must be of type array|object, null given



2: Undefined array key "template_layers"

2: Undefined array key "can_register"

2: Undefined array key "session_id"

2: Undefined array key "session_var"

2: Undefined array key "id"


Duban Black

#8402
I have installed the mod and it works fine but it is modifying codes of messages already compiled and generated by other sources.
For example, it adds a " at the end of the link inside an [ img ] and since then the images are no longer displayed.

Before:
<div class="naipe"><span>texto:</span>[img]https://xxx.com/foro/Themes/default/images/Minitrama/mini24-1.png[/img]</div>
Now:
<div class="naipe"><span>texto:</span>[img]https://xxx.com/foro/Themes/default/images/Minitrama/mini24-1.png"[/img]</div>
How can I fix this? Which template should I modify?

Duban Black

Quote from: duban1 on November 27, 2024, 04:54:11 AMI have installed the mod and it works fine but it is modifying codes of messages already compiled and generated by other sources.
For example, it adds a " at the end of the link inside an [ img ] and since then the images are no longer displayed.

Before:
<div class="naipe"><span>texto:</span>[img]https://xxx.com/foro/Themes/default/images/Minitrama/mini24-1.png[/img]</div>
Now:
<div class="naipe"><span>texto:</span>[img]https://xxx.com/foro/Themes/default/images/Minitrama/mini24-1.png"[/img]</div>
How can I fix this? Which template should I modify?


This is already corrected, by the way, this problem is still not solved.

Quote from: perfec2 on September 24, 2024, 08:36:57 AMHi supporters,

After upgrading our forum Cokoye.com from 2.0 to 2.1 everything works fine as much as I can see. However, after installing Prettyy URLs, anytime a user posts url on the forum without "https://"  our full url will automatically be inserted and ///.

For example, if you post simplemachines.org the clickable link will lead you to https://cokoye.com///simplemachines.org

Or post cokoye.com, the clickable link will lead to https://cokoye.com///cokoye.com

Please what is the solution?


Thank you in advance.

vbgamer45

Confirmed there is an issue.
Community Suite for SMF - Grow your forum with 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

vbgamer45

Update! 4.2 Pretty urls
!Fixed issue with relative links with extra //'s added since 2.1 adds // by default now to links


@perfec2
Community Suite for SMF - Grow your forum with 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

Duban Black

Quote from: vbgamer45 on November 27, 2024, 05:04:56 PMUpdate! 4.2 Pretty urls
!Fixed issue with relative links with extra //'s added since 2.1 adds // by default now to links


@perfec2

Thank you very much.

Works perfectly

MegaBrutal

For some reason, the /agreement link on my forum leads to 404 with PrettyURLs 4.2.

https://asperger.hu/agreement/

It works with its non-pretty form:

https://asperger.hu/index.php?action=agreement

Hilariously enough, the agreement link without a trailing slash gives the raw BBCode text of the agreement... don't even understand how that may happen.

https://asperger.hu/agreement

The Apache rewrite rule is in place, and generally PrettyURLs works throughout the forum aside from the agreement.

RewriteRule ^(agreement|acceptagreement|activate|admin|announce|attachapprove|buddy|calendar)/?$ ./index.php?pretty;action=$1 [L,QSA]

What might be the problem?
Despite this.
I feel obligated to suggest.
Should you choose to create this world once more.
Another path would be better suited.


vbgamer45

I think it might be a server issue with apache. Maybe mod_security issue?
Since the other actions work ok. I tested admin in that list.
Community Suite for SMF - Grow your forum with 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

MegaBrutal

It's not mod_security, as it doesn't log anything when it happens, and I don't know about any other server configuration that may affect this. Any other ideas?
Despite this.
I feel obligated to suggest.
Should you choose to create this world once more.
Another path would be better suited.


vbgamer45

Community Suite for SMF - Grow your forum with 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

MegaBrutal

Quote from: MegaBrutal on January 22, 2025, 07:55:00 PMFor some reason, the /agreement link on my forum leads to 404 with PrettyURLs 4.2.

If anyone gets the same problem, here is the solution:
https://www.simplemachines.org/community/index.php?msg=4185179
Despite this.
I feel obligated to suggest.
Should you choose to create this world once more.
Another path would be better suited.


Oldiesmann

Does anyone have a working solution for nginx only? I'm playing around on a test board and when I set the site configuration to serve everything with nginx and put the rewrite rules from the admin center into the appropriate place in Plesk (you can specify additional directives from the control panel so you don't have to edit the server config file), I just end up with 404 Not Found errors everywhere.
Michael Eshom
Christian Metal Fans

perfec2

Quote from: vbgamer45 on November 27, 2024, 05:04:56 PMUpdate! 4.2 Pretty urls
!Fixed issue with relative links with extra //'s added since 2.1 adds // by default now to links


@perfec2

Thank you it works fine now.

Advertisement: