News:

Wondering if this will always be free?  See why free is better.

Main Menu

Pretty URLs

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

Previous topic - Next topic

oktosoma


Dannii

Okay, yeah that's strange... hmm...
"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

#2042
Hi there Dannii, i was having the 0.8.2 Version. I've uninstalled that & also deleted the the 2 pretty tables also. After that i've installed the new 0.8.4 version. My problem is that my board names are not appropriate, how can i make it to write completely again from scratch.

I'm having a forum named "Announcements", but its previous name was "Forum Rules"
Now the problem is, the announcement forum have the following URL

http://www.project-bb.org/forum-rules/

Also there are some sections which i want to rewrite. How should i achieve that.
I want the url to be written again to produce "Announcements" board URL as

http://www.project-bb.org/announcements/

Thanks in advance. Waiting for your reply. :)

EDIT: my board as well as topics are not opening. :( They are showing me 404 error. Donno why i've disabled the Pretty URL, now they are working fine. But i want all the sections to be rewritten using pretty URL. Also does this 404 error occurred due to because i deleted those database tables.
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

You uninstall 0.8.4 but don't delete anything. Then install the latest 0.9 snapshot, which adds an interface to change board URLs.

Are only the topic URLs broken?
"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

#2044
No No, now when i try to enable the URL Rewrite & Open any board or topics, it shows me 404 error. Its because i deleted those two tables of topic names & cache of pretty URL's. What should i do now ? Also after installing 0.9, will it fix my board URL from "forum-rules" to "announcements" ?

Waiting for the answer, thanks for looking into it. :)

EDIT: Removed the 0.8.4 with two 2 table dropped & installed the 0.9 snapshot, but when i tried to lookup at the URL, they are old url for both board & topics. After clicking on them, they gives me 404 error. I have my database backup before deletion of those tables. Should i restore those 2 tables from that backup or is there any mechanism by which we can rewrite & create the pretty URL's of all the boards & topics again. Also in which table the URL's of the board & topics are stored. Also if they are stored in those 2 pretty tables, why the board url's are the same after deleting & reinstalling the MOD.

Thanks, hope i'm able to put my query in proper words & you understood it. Thanks & Sorry for my bad english. :P
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

Check that .htaccess is still writeable by all.

When you install the mod it will add an tables you've deleted, so that's not a problem. The reason why the board names are the same is that they're stored in the settings table. You can edit the board URLs by going to the manage boards page.
"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

#2046
OK, let me tell you the thing from the first. I was having a SMF 2.0 Beta 3.1 forum on my free host. I was using the Pretty URLs 0.8.2. But due to previous mistakes my announcement sections was renamed to "forum-rules" & the URL was created with that name only. So i've decided to reinstall the pretty URL.

After that I've switched to new server, done all the settings, uninstalled the first version of pretty URLs. Downloaded the latest 0.8.4 version & installed that. I was hoping that it will create all the URLs again as they are created when i installed the MOD at very first time & my that board name issue will be solved. But instead it created a problem there. When i click on any board with the pretty URL, it says "404 - Not Found".

After that you gave me suggestion to install the latest 0.9 snapshot. I've installed that also, but still they are giving the same error 404. Then after your last reply, i've checked my .htaccess file & compared it with my previous .htaccess file in my backup. There was a change.

See here my .htaccess file after installing both 0.8.4 & 9.0 snapshot on new server.

#   Pretty URLs mod
#   http://code.google.com/p/prettyurls/
#   .htaccess file generated automatically on: July 25, 2008, 6:44

RewriteEngine on

& the below one is the file from my old backup from my old server with 0.8.2 version

#   Pretty URLs mod
#   http://code.google.com/p/prettyurls/
#   .htaccess file generated automatically on: July 24, 2008, 23:24

RewriteEngine on

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

I tried changing the permissions as 777 to the .htaccess file & also tried by restoring old .htaccess file, but still its not working. I've tried every possible situation there. I've explained it as much as possible. If you want the demo account, admin account, ftp account or control panel account of hosting, i will give you.
Thanks for looking into my problem, I've kept my site on maintenance so that Google wont be able to crawl the pages which are broken.

Am i doing right ? Or should i open the board by uninstalling the pretty URLs.

I'm looking for a solution. Sorry for creating too many problems. :(
Thanks/
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

Ahhh, you've changed servers! Are you sure your new server even supports .htaccess files and mod_rewrite?
"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

#2048
Quote from: Dannii on July 25, 2008, 11:44:26 AM
Ahhh, you've changed servers! Are you sure your new server even supports .htaccess files and mod_rewrite?

Actually my friend gave me that hosting. Is there any way to test out that ?
I tested the board for .htaccess & mod_rewrite, both the test failed. What should i do now ? Is it ok to keep normal URL now ?
I have soo many pages cached & indexed by google.

http://www.google.co.in/search?hl=en&q=site%3Aproject-bb.org&btnG=Google+Search&meta=

Any solution for that. Because all those pages are giving a 404 error & only 1 index page is working. :(
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.


ccbtimewiz

Quote from: NIBOGO on July 25, 2008, 06:17:37 PM
How i can have pretty urls with the articles of Tinyportal??

I could be wrong, and Dannii, please tell me if I am, but I believe that this modification was designed for basic SMF. Meaning that Tiny Portal is not supported.

Nibogo

Quote from: ccbtimewiz on July 25, 2008, 06:49:01 PM
Quote from: NIBOGO on July 25, 2008, 06:17:37 PM
How i can have pretty urls with the articles of Tinyportal??

I could be wrong, and Dannii, please tell me if I am, but I believe that this modification was designed for basic SMF. Meaning that Tiny Portal is not supported.

But maybe this mod can be integrated with other mods , a lot of SMF Mods are been integrate with others like the download system with the smfshop or the seo4smf have pretty urls for TP , so i think of maybe dannii can make something with TP.

Excuse me i dont speak english  ;)

Dannii

Quote from: SwapsRulez on July 25, 2008, 04:42:53 PM
Quote from: Dannii on July 25, 2008, 11:44:26 AM
Ahhh, you've changed servers! Are you sure your new server even supports .htaccess files and mod_rewrite?

Actually my friend gave me that hosting. Is there any way to test out that ?
I tested the board for .htaccess & mod_rewrite, both the test failed. What should i do now ? Is it ok to keep normal URL now ?
I have soo many pages cached & indexed by google.

http://www.google.co.in/search?hl=en&q=site%3Aproject-bb.org&btnG=Google+Search&meta=

Any solution for that. Because all those pages are giving a 404 error & only 1 index page is working. :(
If mod_rewrite isn't on the server there's unfortunately nothing you can do. Perhaps your friend can install it for you?

Quote from: NIBOGO on July 25, 2008, 06:17:37 PM
How i can have pretty urls with the articles of Tinyportal??
Make a package from the "extras" files in the svn and install it.
"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."

glennk

Hi Eldacar,

Its me again. Ive been looking through my google webtools and its highlighting a lot of duplicate titles and descriptions caused by pretty urls. Have you worked anything out for this yet ?

Cheers - glenn

chadon

I had the same problem with my forum and it can be easily fixed with your robots.txt file. Here is what I have on mine:
Disallow: /cgi-bin/
Disallow: /forum/search/
Disallow: /forum/calendar/
Disallow: /forum/login/
Disallow: /forum/register/
Disallow: /forum/profile/
Disallow: /forum/contact/
Disallow: /forum/help/
Disallow: /forum/Themes/
Disallow: /forum/stats/
Disallow: /forum/reminder/
Disallow: /forum/tagged/

Disallow: /forum/*.msg*
Disallow: /forum/*sa=showPosts*
Disallow: /forum/*prev_next*
Disallow: /forum/*action=*
Disallow: /forum/*imode*
Disallow: /forum/index.php/*
Disallow: /forum/*/0*
Disallow: /forum/*PHPSESSID*

Dannii

Quote from: glennk on July 26, 2008, 01:10:54 PM
Its me again. Ive been looking through my google webtools and its highlighting a lot of duplicate titles and descriptions caused by pretty urls. Have you worked anything out for this yet ?
Can you show me some specific examples?
"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."

glennk

Hi Eldacar/Danii

This is what it says in webmaster tools :

Meta description issues
   
Duplicate meta descriptions    67
Long meta descriptions    0
Short meta descriptions    363

Title tag issues
   
Missing title tags    1
Duplicate title tags    92
Long title tags    0
Short title tags    0

Obviously this is for the whole site and some of the problems are being caused by a wordpress installation I use which is using the same title tag for categories and topic tags, but analysis of the report shows some of the duplicate title tags are caused by forum pages like :

/forum/north-east-coast-fishing/a-secret-location-somewhere-near-to-brid/10/‎
/forum/north-east-coast-fishing/a-secret-location-somewhere-near-to-brid/20/‎
/forum/north-east-coast-fishing/a-secret-location-somewhere-near-to-brid/30/‎
/forum/north-east-coast-fishing/a-secret-location-somewhere-near-to-brid/40/‎

or

/forum/north-east-coast-fishing/whitby-angling-festival-2008/‎0
/forum/north-east-coast-fishing/whitby-angling-festival-2008/‎100
/forum/north-east-coast-fishing/whitby-angling-festival-2008/‎20
/forum/north-east-coast-fishing/whitby-angling-festival-2008/‎50
/forum/north-east-coast-fishing/whitby-angling-festival-2008/‎60
/forum/north-east-coast-fishing/whitby-angling-festival-2008/‎80

Also similar is said to be true of meta descriptions :

/forum/north-east-coast-fishing/new-record-bass/10/‎
/forum/north-east-coast-fishing/new-record-bass/20/‎
/forum/north-east-coast-fishing/new-record-bass/30/‎
/forum/north-east-coast-fishing/new-record-bass/40/‎

I realise in the past that you have always felt the pages to be different but if google is flagging them up it maybe needs looking at ?

As always thanks for your valuable time, you must have put many hours into this - so thanks and well done.

Dannii

That's how it would be without this mod too, it's just showing all the different pages of a topic.
"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

Okay i need another help, on one of my other boards, the website works well with www.xxx.com name in it but xxx.com dosent work well.. Wierd..

Now i want pretty urls to treat everything with www. in it... what must i do ?

Dannii

I don't understand what you're asking...
Is your www. subdomain pointing to the same place as no subdomain?
"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."

Advertisement: