Pretty URLs

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

Previous topic - Next topic

winsoft

my board urls having index.php's which causing 404s, how can i remove the index.php's from breadcrums ?

thank you

vbgamer45

Can you show me an example?
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

juliereader

hi there,

When i use brackets in Topic's Subject. it is also appearing in URL

for example when i entered : [BUY] New Stuff

the url of the topic becomes = domain.com/category/[BUY]-New-Stuff

is it related to pretty url ?

I am using SMF 2.0.15 and following MODS

Pretty URLS
Mention
Registered Links
Contact Page
External and NoFollow All Links
SMF Likes Plus
Show JDALLAUI in Post and PM

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

juliereader


vbgamer45

It's not really a bug it would require you to change some of the code to remove allowing []'s in the the url for pretty urls.
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

juliereader

Quote from: vbgamer45 on January 30, 2018, 07:30:45 AM
It's not really a bug it would require you to change some of the code to remove allowing []'s in the the url for pretty urls.


yes..but how, what and where please ?

vbgamer45

I would have to look at the code I don't know offhand.
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

juliereader

Quote from: vbgamer45 on January 30, 2018, 08:30:27 AM
I would have to look at the code I don't know offhand.


Please do...my forum is waiting for you kind help  :-[

KensonPlays

Installing automatically didn't work, so I'm trying to install it manually, but apparently /Sources/ManageErrors.php doesn't have the following code for it to find:


   $context['sub_template'] = 'error_log';



And because of that I'm getting 500 server errors on my VPS.


Where in the file is that line so I can add it in?

Owner of Mesozoic Haven

vbgamer45

Line 284


// And this is pretty basic ;).
$context['page_title'] = $txt['errlog'];
$context['has_filter'] = isset($filter);
$context['sub_template'] = 'error_log';
}

// Delete errors from the database.
function deleteErrors()
{
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

KensonPlays

Quote from: vbgamer45 on January 30, 2018, 02:26:05 PM
Line 284


// And this is pretty basic ;).
$context['page_title'] = $txt['errlog'];
$context['has_filter'] = isset($filter);
$context['sub_template'] = 'error_log';
}

// Delete errors from the database.
function deleteErrors()
{


Thanks, found it and attempted to do a fully manual installation, and then found out I needed to install mod_rewrite, and after which I did, the whole site crashed. I guess I won't be using PrettyURLs. (Ubuntu 14.04, no way to upgrade on this vps)

Owner of Mesozoic Haven

juliereader

Quote from: juliereader on January 30, 2018, 04:48:37 AM
hi there,

When i use brackets in Topic's Subject. it is also appearing in URL

for example when i entered : [BUY] New Stuff

the url of the topic becomes = domain.com/category/[BUY]-New-Stuff

is it related to pretty url ?

Still waiting for the solution of this

I am using SMF 2.0.15 and following MODS

Pretty URLS
Mention
Registered Links
Contact Page
External and NoFollow All Links
SMF Likes Plus
Show JDALLAUI in Post and PM

d3vcho

Please don't double post your question and wait patiently for a solution from the Mod's author. You won't make it go faster by publishing it again.

Thank you.
"Greeting Death as an old friend, they departed this life as equals"

juliereader

Quote from: d3vcho(void) on January 31, 2018, 08:08:39 AM
Please don't double post your question and wait patiently for a solution from the Mod's author. You won't make it go faster by publishing it again.

Thank you.

so can i bump now...its been a week  :-\

juliereader

Quote from: vbgamer45 on January 30, 2018, 08:30:27 AM
I would have to look at the code I don't know offhand.

hi there,
did u get a chance to look at the code for the brackets in url issue ?

The mod owner seems too busy to update or reply here

Dwev

Installed Pretty URLs 1.1.4 a while back on our new test forum, everything worked fine and without a problem.

Today we imported the data of the old forum, and we get logged out on different places, and Pretty URLs seems to be the culprit (turning it off is enough to get rid of this problem).

We completely removed Pretty URLs (including the tables in the database) and re-installed, still no dice.

Anybody any idea what the problem is here?
Can Pretty URL handle big forums?

The smf_pretty_topic_urls table has only 319 entries, smf_pretty_urls_cache only 1.481.
The forum has more than 53,000 topics.

We ran the maintenance tasks, didn't help.

vbgamer45

Make sure you update your pretty urls root if you are getting logoff sounds like your pretty urls root is wrong

Second topic on that page
https://code.google.com/archive/p/prettyurls/wikis/TroubleShooting.wiki
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

Dwev

Quote from: vbgamer45 on February 15, 2018, 05:38:12 PM
Make sure you update your pretty urls root if you are getting logoff sounds like your pretty urls root is wrong

I came back here to tell that I fixed the problem, only to find that vbgamer45 already posted the same solution I just found myself.

Because you're absolutely right: it was the pretty urls root was wrong: the url of the site is without "www", but in Pretty URLs is was somehow set with "www".

Removing this was enough, everything started working immediately like it should again!  :D

JTVaughn

Is there any way to have the pretty url for tags be forum/tags/tag/ or forum/tags/exampletag/ without the ID number at the end? Currently it's forum/tags/tag/1 or forum/tags/exampletag/2

Advertisement: