Pretty URLs

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

Previous topic - Next topic

pooya

I open my website with www.khu.com okay

But when i click on the boards it opens   khu.com/general-discussion.

Now i want prettyurls to make it www.khu.com/general-discussion.

Hope i make sense. Cause when i turn off pretty urls it works fine.

Dannii

You'll need to insert some rules before pretty urls does in .htaccess. I don't know what rules to use, you can Google for them.
"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."

pooya

Ummm nope its something with to do with pretty urls, when off my linking works with www in it on boards but when on it dosent.

pooya

Found the cure :)

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

SwapsRulez

A big problem, installed the Pretty URLs, but my server still don't supports mod_rewrite & .htacess. What should i do ? I can't login to Admin Panel, also can't disable or uninstall it coz it gives 404 error. :(
Project-BB.org : Educational Forum For Engineering, Diploma & Technical Students

The Engineering, Diploma & All technical students lounge for Free Projects, Seminars, Syllabus, Question Papers, College Assignments, Placement Papers, E-Books, Company Information & other technical stuffs.

Dannii

"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."

SwapsRulez

Project-BB.org : Educational Forum For Engineering, Diploma & Technical Students

The Engineering, Diploma & All technical students lounge for Free Projects, Seminars, Syllabus, Question Papers, College Assignments, Placement Papers, E-Books, Company Information & other technical stuffs.

picture

Hey guys, great mod. I've searched around Google and the readme but can't figure this out - is it possible to setup Pretty URLs if your forum is on a subdomain of your domain? Such as smf.example.com?

The mod installs fine for us, but the URLs it generates are for example.com/smf for boards and topics, even though our SMF server settings are setup as smf.example.com and even though we've performed Pretty URLs maitenance and SMF maintenance for fixing errors and optimizing tables.

How can we set this up so that all our URLs are like this: smf.example.com/board-name/topic-title/

Thanks guys.
kanter

Dannii

You'll have to change the pretty_root_url setting if you've moved the forum since installing the mod.
"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."

Dannii

Quote from: oktosoma on July 23, 2008, 12:45:36 PM
BUGS REPORT (snapshot version) : when rewrite action URL is enabled, we can not do file maintenance (delete old attachment file).
Make this change to Security.php:
Code (find) Select
if (!empty($from_action) && (!isset($_SESSION['old_url']) || preg_match('~[?;&]action=' . $from_action . '([;&]|$)~', $_SESSION['old_url']) == 0))
Code (replace) Select
if (!empty($from_action) && (!isset($_SESSION['old_url']) || preg_match('~[?;&]action=' . $from_action . '([;&]|$)|' . $boardurl . '/' . $from_action . '~', $_SESSION['old_url']) == 0))
"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."

Dr Web

Hi

I have the pretty urls mod installed and I want to know how to add custom actions to the pretty urls filters because I installed also the SMF Sitemap mod and I want to change the URL http://forums.drpennystock.com/index.php?action=sitemap to URL http://forums.drpennystock.com/sitemap.

Thanks
Never approach a bull from the front, a horse from the rear, or an idiot from any direction ;D

picture

Quote from: Dannii on July 29, 2008, 07:42:02 AM
You'll have to change the pretty_root_url setting if you've moved the forum since installing the mod.

Thanks Dannii. How can we do this? We tried reinstalling with no luck. I see pretty_root_url $txt settings in the language files but I don't know where else we can change this in the Pretty URLs installation/database.

Dannii

Quote from: [SiNaN] on July 29, 2008, 12:34:25 PM
Great mod Dannii, it is a real legend.

But I've a question; one my user is asking whether he can use my mod SimplePortal with Pretty URLs. I didn't had the stuff to test both of the mods. But my mod only adds ?action=forum and uses ?sa=articles;start=1. Would they cause any problems?
That should be fine.

Quote from: Dr Web on July 29, 2008, 04:01:22 PM
Hi

I have the pretty urls mod installed and I want to know how to add custom actions to the pretty urls filters because I installed also the SMF Sitemap mod and I want to change the URL http://forums.drpennystock.com/index.php?action=sitemap to URL http://forums.drpennystock.com/sitemap.

Thanks
Run maintenance to update the list.

Quote from: kanter on July 29, 2008, 04:12:07 PM
Thanks Dannii. How can we do this? We tried reinstalling with no luck. I see pretty_root_url $txt settings in the language files but I don't know where else we can change this in the Pretty URLs installation/database.
Look in the smf_settings table.
"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."

Dr Web

It worked, many thanks for the the fast reply.
Never approach a bull from the front, a horse from the rear, or an idiot from any direction ;D

picture

Quote from: Dannii on July 29, 2008, 09:10:43 PM
Look in the smf_settings table.

That did the trick, thank you. Almost forgot to fix up our .htaccess file also...!!

Maybe you can include a warning to users on the mod's page to add rules to their .htaccess. Not sure if that was supposed to be automated but it didn't work for us, we had to edit our our .htaccess file (maybe related to our subdomain problems?).

Anyway, thank you.

Dannii

Quote from: kanter on July 30, 2008, 05:53:05 AM
That did the trick, thank you. Almost forgot to fix up our .htaccess file also...!!

Maybe you can include a warning to users on the mod's page to add rules to their .htaccess. Not sure if that was supposed to be automated but it didn't work for us, we had to edit our our .htaccess file (maybe related to our subdomain problems?).

Anyway, thank you.
The mod should automatically edit the .htaccess file, unless PHP doesn't have file permissions to do 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."

Dr Web

How can I include the topic title in the description?

Right now the description is the first 55 characters of the message, what I want is the description begin with the title of the topic and only after that the first words of the message.

In a SEO perspective, the description is also very important, and, 99% of the time, the first words of a message has nothing to do with the topic.

Thanks
Never approach a bull from the front, a horse from the rear, or an idiot from any direction ;D

Dannii

This mod has nothing to do with meta descriptions, though I think there might be a mod to do that already.
"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."

Dr Web

Of course not, my apologies, I posted here instead of in the vBulletin Style Meta Tags mod topic, that I also have installed.

Sorry.
Never approach a bull from the front, a horse from the rear, or an idiot from any direction ;D

goldenboy48

#2079
Edit: Ignore. Check the post after this.

Hello Dannii,

I contacted you though TinyPortal.net through PM about using Pretty URLs for TinyPortal articles. I installed your new 0.9 snapshot, which messed up my forum. Reinstalled everything on my forum. Trying to install 0.8.4 again and I'm getting this error:


Fatal error: require() [function.require]: Failed opening required '/home/ecricnet/public_html/Packages/temp/./SMF1-1/install.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/ecricnet/public_html/Sources/Packages.php on line 552

Advertisement: