News:

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

Main Menu

Search Engine Friendly URLs

Started by CA3LE, January 20, 2005, 04:04:42 AM

Previous topic - Next topic

flyingmembers

I don't suppose anyone could help me with this...I don't mind to pay if the above could be clarified.

Thanks

Daevien

You need to change any part that looks like (or very close to)

<a href="' . $scripturl . '?topic=

to

<a href="' . $scripturl2 . '/topic=

You are changing the ?topic stuff to /topic- which is correct but you also need to change the base url returned or else you'll get stuff like domain/forums/index.php?/topic-1 which will return errors.

With the scripturl2 in the global vars part, I set it in the three files you editted, anything else shouldn't refer to those locations so wouldn't need to set that.

The .htaccess could be done within either directory I believe, I've only done it with the base site address though which is what the original person did as well. From what you seem to be doing, you want it to include the /forums/ bit when you give a url, ie: domain.com/forums/topic-1 [nofollow]? Or do you want it to be set to domain/topic-1? If it's right off the domain, you would want the .htaccess file in the root directory for your domain. If you move your .htaccess from the current location (which i think is under the forums directory) to the root, you should be in business for the topics being http://www.flyingmembers.com/topic-1.0 [nofollow]

Currently if you go to http://www.flyingmembers.com/forums/topic-1.0 [nofollow] it does in fact work but that's not really much shorter of a url.

I think this post made sense, just got off a crazy work schedule and then slept for 18 hours straight, I may not be making sense yet (if i ever do ;)

Jaeren

flyingmembers

Thanks, so what I did was pretty much right (I added the .htaccess file in the root before), however when you mention:

"but you also need to change the base url returned or else you'll get
stuff like domain/forums/index.php?/topic-1 which will return errors."

I think this is the problem...what does this actually mean?

Thanks again...

Daevien

Case 1
$scripturl2 should be set to http://www.flyingmembers.com/forums/ [nofollow] if you want it to show as http://www.flyingmembers.com/forums/topic-1 [nofollow]
Your htaccess should be in the forums directory then I believe

Case 2

$scripturil set to http://www.flyingmembers.com/ [nofollow] if you have your htaccess in the root and want it to show as http://www.flyingmembers.com/topic-1 [nofollow]


Daevien


CA3LE

Quote from: [Unknown] on February 24, 2005, 02:21:02 AM
Quote from: flyingmembers on February 23, 2005, 08:01:59 PM
But if you run most forums through:
http://www.submitexpress.com/analyzer/

You'll see the actual topic posts aren't spidered at all, even if Search Friendly Mod switched on in Apache.

So, obviously, that tool knows absolutely nothing.

-[Unknown]

hahahaha, yep

shads

I got error when I follow this step.. I succesfully converted all the dynamic urls i want to change into static but i have error in my logs.


8: Undefined index: topic_first_message
File: /home/x/public_html/forums/Themes/default/Display.template.php (eval?)
Line: 669


Anyone who can help me fix this? thanks  :)

talkaboutpop.com

I am sorry but when I go to Admin Center/ Edit Features and Options there is NO Search Engine Friendly URL's

Am I in need of an upgrade because I don't think there is much point me trying to do much else when I cannot even get this sorted...........


Quote from: Alexandre P. on January 20, 2005, 02:36:41 PM
For the Search Engine Friendly URLs, in you Admin Center > Edit features and options > Basic Forum Features > Search engine friendly URLs, there should be a button.  A popup will open and tells you if this function will work on your forum.


[Unknown]

Quote from: shads on March 24, 2005, 11:24:43 AM
8: Undefined index: topic_first_message
File: /home/x/public_html/forums/Themes/default/Display.template.php (eval?)
Line: 669

Are you using an older template or non standard theme?

Quote from: talkaboutpop.com on March 24, 2005, 08:18:15 PM
I am sorry but when I go to Admin Center/ Edit Features and Options there is NO Search Engine Friendly URL's

Am I in need of an upgrade because I don't think there is much point me trying to do much else when I cannot even get this sorted...........

Have you made sure you expanded all the different sections?

-[Unknown]

flyingmembers

Did you make sure the search friendly URL's button is ticked?  Also have you setup the .htaccess file.

I had problems, but read the instructions about x10 times and it does really work. ;)

Quote from: shads on March 24, 2005, 11:24:43 AM
I got error when I follow this step.. I succesfully converted all the dynamic urls i want to change into static but i have error in my logs.


8: Undefined index: topic_first_message
File: /home/x/public_html/forums/Themes/default/Display.template.php (eval?)
Line: 669


Anyone who can help me fix this? thanks  :)

talkaboutpop.com

As I said before I can find the option "search engine friendly URLS" in this section

Is that what it is actually called? This is very frustrating when I cannot even figure this out.

I am not blind but this option does not appear to be there!

[Unknown]

I believe it's called "show URLs without ?s" or similar.

-[Unknown]

talkaboutpop.com

Thank you, That was not that obvious you know

I finally got the URLs sorted at my website www.talkaboutpop.com [nofollow]

Right now Google has only 4 pages in its sites for my site so I expect this to improve rapidly soon... or should I?

Is there a code I can add to .httaccess to encourage google to do it's business...

Go wild... wild i tell you WILD!!!!!!!!!

THANKS EVERYONE FOR YOUR POSTS xxx

shads

Quote from: [Unknown] on March 25, 2005, 02:13:57 AM
Quote from: shads on March 24, 2005, 11:24:43 AM
8: Undefined index: topic_first_message
File: /home/x/public_html/forums/Themes/default/Display.template.php (eval?)
Line: 669

Are you using an older template or non standard theme?

Quote from: talkaboutpop.com on March 24, 2005, 08:18:15 PM
I am sorry but when I go to Admin Center/ Edit Features and Options there is NO Search Engine Friendly URL's

Am I in need of an upgrade because I don't think there is much point me trying to do much else when I cannot even get this sorted...........

Have you made sure you expanded all the different sections?

-[Unknown]

I just want to update my post here.. Its fixed now .. thanks  :)

talkaboutpop.com

BAD NEWS....

Google crawled my site the 30th APRIL but only crawled the front page and did not delve any further...

Any wanna check out www.talkaboutpop.com [nofollow] and see if I'm doing anything wrong?

Tommy

talkaboutpop.com


Ben_S

Be patent, it takes a while from a googlebot crawl to any updates in googles listing.
Liverpool FC Forum with 14 million+ posts.

[Unknown]


shads

$context['page_index'] = constructPageIndex($scripturl . '?topic=' . $topic, $_REQUEST['start'], $topicinfo['numReplies'] + 1, $modSettings['defaultMaxMessages'], true);


in this part of the display.php .. is it possible to change the dot? e.g
topic=128.15  into topic=128/15

I really dont know how to edit that dot thing. anyone help pls  :)

[Unknown]

Yes, but you'd also have to make it parse it correctly.

Why don't you like the dot?  Google doesn't seem to mind the dot.

-[Unknown]

Advertisement: