News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Pretty URLs

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

Previous topic - Next topic

Dannii

I don't think having the same titles is enough, it needs to have substantially the same content.
"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

#581
Hi Eldacar,

For google one of the criteria for keeping out of supplemental results is having unique title tags (admittedly not always, but for someone without enough pr or links into a specific page, floating on the edge of supplementals then the title tag can make the difference). Maybe it would be a good idea to go the same way as seo4smf and offer such a feature for setting your own titles? It would be useful.  ;) :) :)

Also is there a way to make redirects easier for board names ? I have another slight problem as I changed another board name and it wont redirect through htaccess.

In future I will give more thought when I set up boards. I like to have a play around for seo purposes to see what keywords bring the best traffic.

This wont redirect


redirect 301 /forum/site-reviews-and-links-north-east-coast-fishing/0/
http://www.whitbyseaanglers.co.uk/forum/site-reviews-and-links/0/

Thanks - Glenn  :) :)


Dannii

QuoteFor google one of the criteria for keeping out of supplemental results is having unique title tags (admittedly not always, but for someone without enough pr or links into a specific page, floating on the edge of supplementals then the title tag can make the difference). Maybe it would be a good idea to go the same way as seo4smf and offer such a feature for setting your own titles? It would be useful.  ;) :) :)
I don't want to go the same way as SEO4SMF and fill this mod with bloat. It would be better to have another mod, but in this case I think it could just be a theme edit.

QuoteAlso is there a way to make redirects easier for board names ? I have another slight problem as I changed another board name and it wont redirect through htaccess.
I do plan on doing this.. I'll see if I can get it done for the next release.
"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

Your a good lad Eldacar, I like people who are open to suggestion. At least you didnt tell me to bugger off. Do you think someone may write a mod for title changing ?

In the mean time could you advise on a redirect for this forum board.

redirect 301 /forum/site-reviews-and-links-north-east-coast-fishing/0/
http://www.whitbyseaanglers.co.uk/forum/site-reviews-and-links/0/

and also from

.forum/index.php to /forum


Col

Quote from: glennk on August 06, 2007, 06:43:00 AM
Your a good lad Eldacar, I like people who are open to suggestion. At least you didnt tell me to bugger off. Do you think someone may write a mod for title changing ?

In the mean time could you advise on a redirect for this forum board.

redirect 301 /forum/site-reviews-and-links-north-east-coast-fishing/0/
http://www.whitbyseaanglers.co.uk/forum/site-reviews-and-links/0/

and also from

.forum/index.php to /forum

How do you do this? Do you use the following?

http://www.simplemachines.org/community/index.php?topic=165358.0

Are you aware of any negative effects?

Thanks.

Dannii

glennk, if you can post up those database settings again I'll fix them for you. As for index.php I think that can be changed just by editing Querystring.php like in Col's link.
"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

#586
Hi Cheers,

That redirect thing with the query string doesnt work for me (Typical isnt it) Ive posted into the topic to try find out why.

Ive been having my forum reviewed on an seo forum and the guys flagged a couple of issues

Quote* You have a canonical issue with your website and have multiple versions of your forums like

http://www.whitbyseaanglers.co.uk/forum/index.php
http://www.whitbyseaanglers.co.uk/forum/

and the non-www version of your site http://whitbyseaanglers.co.uk/forum/ gets redirected to one having a long trail of PHP Session ID

http://www.whitbyseaanglers.co.uk/forum/index.php?PHPSESSID=8a6b3b8dc0a1bf49ae2d59b414440a80;www

I don't know where that is coming from. Though it is now appearing every time the page redirects - sometimes it shows up.

Get this thing resolved through a 301 permanent redirection.


* I found that the internal pages are also having a trail of this long session IDs such as

http://www.whitbyseaanglers.co.uk/forum/north-east-coast-fishing/0/?PHPSESSID=1c6efc0858a655f97e74f5685d876a80

http://www.whitbyseaanglers.co.uk/forum/site-reviews-and-links/0/?PHPSESSID=1c6efc0858a655f97e74f5685d876a80

http://www.whitbyseaanglers.co.uk/forum/charter-boats-and-tackle-shops/0/?PHPSESSID=1c6efc0858a655f97e74f5685d876a80

It's really weird that they don't appear on a constant basis, sometimes they do - sometimes they don't

Do you know if any of these are linked to the pretty urls mod ?

Thanks again - Glenn

p.s will post the datbase thingys in a bit  :)

Minare

Hello

Great mod

But I got this error while installing as package :

querystring.php (unsuccesfull)

the others were succesfull, any ideas, why ?  :'(

Col

Quote from: Col on August 06, 2007, 08:15:40 AM
Quote from: glennk on August 06, 2007, 06:43:00 AM
Your a good lad Eldacar, I like people who are open to suggestion. At least you didnt tell me to bugger off. Do you think someone may write a mod for title changing ?

In the mean time could you advise on a redirect for this forum board.

redirect 301 /forum/site-reviews-and-links-north-east-coast-fishing/0/
http://www.whitbyseaanglers.co.uk/forum/site-reviews-and-links/0/

and also from

.forum/index.php to /forum

How do you do this? Do you use the following?

http://www.simplemachines.org/community/index.php?topic=165358.0

Are you aware of any negative effects?

Thanks.

The code at the linked page above to change the forum URL from /forum/index.php to /forum/ has a very unfortunate side-effect. Whenever someone first visits your forum the CSS files are not processed by your browser - the forum looks terrible and very unwelcoming. Upon all subsequent viewings the forum is rendered with the CSS. This effect happens with all browsers. I cannot recommend this code change as people will often look once only and move on, never reloading the page or delving deeper into the forum. I knew of this problem before, but never realised until I just tried adding this code again, what was the cause. I reinstalled my forum from scratch because of this issue, I considered it so serious. It's a shame that I didn't think to restore that one line of code before the reinstall! :( Anyway, I feel the code needs some kind of fix before use.

http://www.simplemachines.org/community/index.php?topic=179131.0

Dannii

glennk, the session ids shouldn't show to spiders, so it should be okay.

Minare, do you have other mods installed that edited QueryString.php?
"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

#590
The guys at the seo forum say the session id's need to go.

How about the redirects Eldacar ? Is something in the forum htaccess stopping them ?

Dannii

The guys at the seo forum are wrong. :P
I don't know what the problem with the redirects is sorry.
"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

I ran the urls through a redirect checker and the session ids are visible to a search engine.

The redirect thing is driving me bonkers now.

Gonna have to join a coding forum for the 301 probs I reckon.

Thanks again.

Back before to long to bug you no doubt  ;) :)

Minare

Quote from: eldʌkaː on August 06, 2007, 08:41:41 PM
glennk, the session ids shouldn't show to spiders, so it should be okay.

Minare, do you have other mods installed that edited QueryString.php?

These are the mods I had installed :

1. RSS Feed Icon 1.1 
2. Profile Comments 1.2.1
3. SSI Topic and Replies 0.1 
4. SMF Staff Page 1.5.1 
5. User Email System
6. Tagging System 1.0.4
7. RSS Feed Poster 1.0.4 

Dannii

You'll have to check if any of them edit QueryString.php.
"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."

Minare

Quote from: eldʌkaː on August 07, 2007, 05:07:04 AM
You'll have to check if any of them edit QueryString.php.

So can I edit this file manually ? If yes, how ?

Dannii

You can, but if the mods are conflicting it might not be a good idea.
http://docs.simplemachines.org/index.php?topic=402
"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."

Minare

Quote from: eldʌkaː on August 07, 2007, 10:16:05 AM
You can, but if the mods are conflicting it might not be a good idea.
http://docs.simplemachines.org/index.php?topic=402

Thank you, I will try after backing up my files ;)

glennk

Hi Back again,

Sussed the index to /forum redirect but I am still getting a problem with the non www. the www 301 Im after creating

When I try to redirect all non www to www's I get urls like :

http://www.whitbyseaanglers.co.uk/forum/?pretty%253bboard=north-east-coast-fishing%253btopic=flambro-today.0

this was created when trying to redirect this

http://whitbyseaanglers.co.uk/forum/north-east-coast-fishing/flambro-today/0/

to this

http://www.whitbyseaanglers.co.uk/forum/north-east-coast-fishing/flambro-today/0/

using this code in the forum htaccess :

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

Is the pretty urls hta causing this one ?


Dannii

It's probably best to do that sort of redirection through cpanel or something rather than .htaccess. Personally I wouldn't bother though, search engines are smart enough to realise that they're the same 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."

Advertisement: