News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Pretty URLs

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

Previous topic - Next topic

mossite

#7220
what will i tell my host and how to i restore a backup. can you help . smf 2.0.8
my host said that i should check custom modifications to .htaccess of pretty URL.
can anyone help me check custom modifications to .htaccess
one of the expert actually installed pretty URL for me
Thanks
Greatness is Goodness

jlee620

I just installed pretty urls but have no clue how to get it to rewrite the urls. Anybody has a clue?

vbgamer45

Go the settings area for the mod and follow the steps.
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

jlee620

Quote from: vbgamer45 on December 21, 2014, 06:37:13 PM
Go the settings area for the mod and follow the steps.

Thanks, I didn't know there is an admin panel for the mods.

mossite

please what can i do , i have been using pretty URL for more than one year now and it suddenly stopped when i added a new board.
what can i do to make it work
Greatness is Goodness

Armada

#7225
Hi Mossite,

Do you see a file called ".htaccess" in the same directory as your forum? (You may have to select an option to show hidden files, because sometimes files that start with "." are hidden).

If you look inside it, does it look anything like this? (It might not look exactly like this, depending on which directory your forum is installed in - the example below shows the forum being in a directory called /forum )


# PRETTYURLS MOD BEGINS
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: January 6, 2015, 14:02

RewriteEngine on
RewriteBase /forum

# 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]

# PRETTYURLS MOD ENDS


Armada
--- SMF Rocks even more than YabbSE---

saurabh1938

I have been using pretty url for quite some time now and all my pages have been indexed as per pretty urls, recently to www resolve I uninstalled and then reinstalled pretty url, because I was getting redirect loop error with pretty url. Though redirect loop problem is still there and one more issue has come up in my live forum. Whenever I see a topic or get inside any board I automatically get logged out and not able to post anything but when I click on Home button, I login back automatically.

Please help, what could have gone wrong. This is a live forum and can't afford to uninstall pretty url but with it my forum is not working properly.

Thanks
Saurabh
Visit my forum : www.gotripperz.com

saurabh1938

I think I have found the issue, it caused by ?wwwredirect after urls, if I write www.sitename.com/forum/topicname it works fine but sitename/forum/topicname/?wwwredirect is messing things up with pretty urls. If somehow www. is added in front of all the urls then I think issue will be resolved
Visit my forum : www.gotripperz.com

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

MESWEB

Why Pretty URLs don't rewrite rules for SA Facebook Integration url don't change is still this same: site.com/inde.php?action=facebook

saurabh1938

Quote from: vbgamer45 on January 15, 2015, 07:05:17 PM
You can change the url using this guide
https://code.google.com/p/prettyurls/wiki/TroubleShooting

I want to the site, I am not able to find solution to two things:

1. I want www in front of every url on my site rather than it is coming as ?wwwredirect. Because when ?wwwredirect comes my users are logged out of the forum.
2. My forum is in folder /forum, and when I redirect with or without www, it is giving me redirect loop.

These two Items I am not able to find even on troubleshooting site nor listed in issues. Please help me, I am even ready to pay for it if someone fix these two issues for me
Visit my forum : www.gotripperz.com

vbgamer45

Use script change replace
$boardurl with the site url "http://www.yoursite.com"

require_once(dirname(__FILE__) . '/SSI.php');
require_once($sourcedir . '/Subs-PrettyUrls.php');
updateSettings(array('pretty_root_url' => $boardurl));
pretty_update_filters();
[/code
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

saurabh1938

Thanks for trying to help me,

The required changes you suggested need to be done in which file?

Also I did some changes in htaccess file, now every thing is working fine but now pretty urls look like this

http://www.mysite.com/gt/index.php?pretty;action=forum rather than http://www.mysite.com/gt/forum

The code was suggested in one of the issue pages which I did in htaccess file:

RewriteOptions inherit
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/gt/$1 [R=301,L]


I am just very close to fix this, spent my whole week in researching a lot and came very close. Just require little bit help. What should I do to make pretty urls look like http://www.mysite.com/gt/forum again and in which file and where I should do the changes suggested by you?
Visit my forum : www.gotripperz.com

vbgamer45

The code changes need to be done it's own file. Called it updateprettyurls.php and just run via the browser copy to your main root directory.
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

Quote from: MESWEB on January 16, 2015, 02:31:39 PM
Why Pretty URLs don't rewrite rules for SA Facebook Integration url don't change is still this same: site.com/inde.php?action=facebook
Can anyone help me?

saurabh1938

I have got everything working except one...

I used below htaccess code suggested in the issue section on google pretty url site, to redirect with www in front of all urls

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

by this way when I am trying to post, post data is getting lost and I am getting redirected to

http://www.example.com/gt/general-discussion/?action=post with a blank post form.
Visit my forum : www.gotripperz.com

MESWEB

I have error:
Quoteaction=admin&area=pretty;sa=settings
8: Undefined index: pretty_bufferusecache
File: /Themes/default/PrettyUrls.template.php
Line: 84
Line 84:
<?php
<input type="checkbox" name="pretty_bufferusecache" id="pretty_bufferusecache"', ($modSettings['pretty_bufferusecache'] ? ' checked="checked"' : ''), ' />
?>

vbgamer45

Run this sql query on your database

REPLACE INTO smf_settings
(variable, value)
VALUES ('pretty_bufferusecache','0')
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

Thanks it's working. I check phpAdmin and pretty_bufferusecache not ther. Some of bug has been when I install mod.
How to display board and child board together? I have parent board SMF and first child board PHP and second one MySQL when I go to MySQL board then url shows like this:
Quotedomain.com/mysql
I want display this:
Quotedomain.com/smf/mysql

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

Advertisement: