Pretty URLs

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

Previous topic - Next topic

Sono

#6580
I have another problem with Pretty url. When I am doing 301 redirect, the old page on my old forum that was not a SMF forum doesn't redirect to the new, revelat page in my new SMF forum that uses pretty url. Here is the problem:

I have this section in my old forum: www.myforum.com/info 
I want it redirect to my new SMF forum, to the revelant page: www.myforum.com/info2

(The new forum has the same domain name as my old one.)
when I set the 301 redirect in .htaccess, i type this to the end of the file:

redirect 301 /info http://www.myforum.com/info2

But the redirection doesn't work. The browser only lands in the frontpage of my new forum.

How can I solve this problem? If I add a different URL at a different website to redirect to, that works, but when I add the revelant section in the SMF forum, it doesn't. I have a suspicion this is because of Pretty url. What is the correct target address to redirect to, so that visitors can land in the revelant section?

Moif

When members are linking to threads on our forums that contain exclamation marks, they are being redirected to the main URL. Facebook for example, won't parse the entire URL. It works if we use a URL shortening service but we want to be able to post the link to our forums without having to do this.

Please advise.



InfoStrides

#6582
I have problem with URL in the Sitemap.

I received alerts on my Google Webmaster as follows:

Quote
Invalid URL

This is not a valid URL. Please correct it and resubmit.

URL: /nigeria-news/
Parent tag: url
Tag: loc

When I checked my sitemap, the errors were confirmed. See it here: http://www.theinfostrides.com/sitemap/?xml

Also in the screenshot attached....

What should I do?

distante

#6583
are you usind the sitemap mod that is in the mod site?

endrju

Hi,
I have instaled SMF 2.0.2 and Pretty Urls 1.0RC.
I think that my problem is common but I can't find something that would help me.

Posting, editing or removing the posts doesn't work because of too many loops.

I've noticed that the redirection goes on non-pretty urls url.

Anyone that knows the solution?

Ondra

endrju

Hi I just resolved this problem.
I dowloaded this mode from this forum and reinstall it on my site.

Sorry for that question

Ondra


distante

*using not usind, sorry!

I also have the combo PrettyUrls/SiteMap mod, both in the latest versions and I don't have any problem. BUT I see in your sitemap file something strange in the top
(function (){ for (var i in window) { try { var jsType = typeof window[i]; switch (jsType.toUpperCase()) { case "FUNCTION": if (window[i] !== window.location) { if (window[i] === window.open || (window.showModelessDialog && window[i] === window.showModelessDialog)) window[i] = function(){return true;}; else if (window[i] === window.onbeforeunload) // To try to fix onbeforeunload pop ups some users report seeing but I can't replicate. window.onbeforeunload = null; else if (window[i] === window.onunload) window.onunload = null; else window[i] = function(){return "";}; } break; } } catch(err) {} } for (var i in document) { try { var jsType = typeof document[i]; switch (jsType.toUpperCase()) { case "FUNCTION": document[i] = function(){return "";}; break; } } catch(err) {} } try { eval = function(){return "";}; unescape = function(){return "";}; String = function(){return "";}; parseInt = function(){return "";}; parseFloat = function(){return "";}; Number = function(){return "";}; isNaN = function(){return "";}; isFinite = function(){return "";}; escape = function(){return "";}; encodeURIComponent = function(){return "";}; encodeURI = function(){return "";}; decodeURIComponent = function(){return "";}; decodeURI = function(){return "";}; Array = function(){return "";}; Boolean = function(){return "";}; Date = function(){return "";}; Math = function(){return "";}; Number = function(){return "";}; RegExp = function(){return "";}; var oNav = navigator; navigator = function(){return "";}; oNav = null; } catch(err) {} })();

That isn't part of the sitemap mod or a regular xml file, there's something wrong with that

InfoStrides

Quote from: distante on March 14, 2012, 04:30:51 PM
*using not usind, sorry!

I also have the combo PrettyUrls/SiteMap mod, both in the latest versions and I don't have any problem. BUT I see in your sitemap file something strange in the top
(function (){ for (var i in window) { try { var jsType = typeof window[i]; switch (jsType.toUpperCase()) { case "FUNCTION": if (window[i] !== window.location) { if (window[i] === window.open || (window.showModelessDialog && window[i] === window.showModelessDialog)) window[i] = function(){return true;}; else if (window[i] === window.onbeforeunload) // To try to fix onbeforeunload pop ups some users report seeing but I can't replicate. window.onbeforeunload = null; else if (window[i] === window.onunload) window.onunload = null; else window[i] = function(){return "";}; } break; } } catch(err) {} } for (var i in document) { try { var jsType = typeof document[i]; switch (jsType.toUpperCase()) { case "FUNCTION": document[i] = function(){return "";}; break; } } catch(err) {} } try { eval = function(){return "";}; unescape = function(){return "";}; String = function(){return "";}; parseInt = function(){return "";}; parseFloat = function(){return "";}; Number = function(){return "";}; isNaN = function(){return "";}; isFinite = function(){return "";}; escape = function(){return "";}; encodeURIComponent = function(){return "";}; encodeURI = function(){return "";}; decodeURIComponent = function(){return "";}; decodeURI = function(){return "";}; Array = function(){return "";}; Boolean = function(){return "";}; Date = function(){return "";}; Math = function(){return "";}; Number = function(){return "";}; RegExp = function(){return "";}; var oNav = navigator; navigator = function(){return "";}; oNav = null; } catch(err) {} })();

That isn't part of the sitemap mod or a regular xml file, there's something wrong with that

Where is the error showing up? Because, I could not see anything in the source file.

distante


InfoStrides

Strange! I could not see such error here. Which browser are you using?

Please note that pretty-URL mod is currently disabled.

distante

I'm using SRIron (a crhome based browser), but I saw that code only in your site, In my its ok, so I don't think I'ts a browser issue, did you tried yo saw that file when you aren't logged into your site?

InfoStrides

Quote from: distante on March 15, 2012, 10:11:51 AM
I'm using SRIron (a crhome based browser), but I saw that code only in your site, In my its ok, so I don't think I'ts a browser issue, did you tried yo saw that file when you aren't logged into your site?

I downloaded and installed SRIron then tested my website but nothing seen.

distante

mmm, I realized something, I have blocked the scripts from your page, if I accept the scripts, that isn't showed, extrange thing that... well I suppose that doesn't have anything to do with the error then, big big sorry!

InfoStrides

What is the link to your sitemap installed with PrettyURL?

Quote from: InfoStrides on March 14, 2012, 12:33:17 PM
I have problem with URL in the Sitemap.

I received alerts on my Google Webmaster as follows:

Quote
Invalid URL

This is not a valid URL. Please correct it and resubmit.

URL: /nigeria-news/
Parent tag: url
Tag: loc

When I checked my sitemap, the errors were confirmed. See it here: http://www.theinfostrides.com/sitemap/?xml

Also in the screenshot attached....

What should I do?

distante


nend

I am using both and don't seem to have a problem. Something else is interfering on your site, either a mod or hack. ;)

My sitemap url
http://wrestletopia.2-si.net/n/sitemap/?xml

InfoStrides

Still looking strange to me because I have removed all the mods recently to check the cause but not discovered. Here are the installed mods:

Quote1.   PageDropdown    1.4     [ Uninstall ] [ List Files ] [ Delete ]
2.   Sitemap    2.2.0     [ Uninstall ] [ List Files ] [ Delete ]
3.   Pretty URLs Extras    1.0     [ Uninstall ] [ List Files ] [ Delete ]
4.   Display Signatures Only Once Per Page    1.0.3     [ Uninstall ] [ List Files ] [ Delete ]
5.   Social Login Pro    2.0     [ Uninstall ] [ List Files ] [ Delete ]
6.   Pretty URLs    1.0     [ Uninstall ] [ List Files ] [ Delete ]
7.   IFS MashableMenu Mod    3.0     [ Uninstall ] [ List Files ] [ Delete ]
8.   Register At Post View v.1.1    1.1     [ Uninstall ] [ List Files ] [ Delete ]
9.   Float BBCODE    1.0.2     [ Uninstall ] [ List Files ] [ Delete ]
10.   VB Style - Poster Info On Top    1.1.1     [ Uninstall ] [ List Files ] [ Delete ]
11.   Google Tagged    1.5     [ Uninstall ] [ List Files ] [ Delete ]
12.   Additional Home page Title | S-Ace    3.5     [ Uninstall ] [ List Files ] [ Delete ]
13.   More Spiders    1.2     [ Uninstall ] [ List Files ] [ Delete ]
14.   Related Topics    1.4     [ Uninstall ] [ List Files ] [ Delete ]
15.   Custom Links and Downloads Directory    1.0     [ Uninstall ] [ List Files ] [ Delete ]
16.   Titled Links    1.2     [ Uninstall ] [ List Files ] [ Delete ]
17.   vBulletin Style Meta Tags    1.1     [ Uninstall ] [ List Files ] [ Delete ]
18.   Prevent Adding Signature Images And Links    2.0     [ Uninstall ] [ List Files ] [ Delete ]
20.   Wireless/RSS amount displayed    1.2.1     [ Uninstall ] [ List Files ] [ Delete ]
21.   RSS Feed Icon    1.1     [ Uninstall ] [ List Files ] [ Delete ]
22.   RSS Feeder    1.1.5     [ Uninstall ] [ List Files ] [ Delete ]
23.   SMF Archive    2.0     [ Uninstall ] [ List Files ] [ Delete ]
24.   Contact Page    3.0     [ Uninstall ] [ List Files ] [ Delete ]
25.   Tynt-SMF Tracer Mod    3.0     [ Uninstall ] [ List Files ] [ Delete ]
26.   SMF4Mobile Mod    1.0     [ Uninstall ] [ List Files ] [ Delete ]
27.   SimpleAds    1.0.1     [ Uninstall ] [ List Files ] [ Delete ]
28.   Remember Position After Login/Logout    1.0.0     [ Uninstall ] [ List Files ] [ Delete ]
29.   SMF Downloads Directory    1.1.5     [ Uninstall ] [ List Files ] [ Delete ]
30.   Twitter and Facebook Publisher mod    2.13     [ Uninstall ] [ List Files ] [ Delete ]
31.   SMF Links Directory    2.2.2     [ Uninstall ] [ List Files ] [ Delete ]
32.   Separate the sticky topics    1.0.0     [ Uninstall ] [ List Files ] [ Delete ]
34.   Online status on login    1.7     [ Uninstall ] [ List Files ] [ Delete ]
35.   SMF Featured Content Slider for IFS    1.0     [ Uninstall ] [ List Files ] [ Delete ]
36.   Tagging System    2.4.2     [ Uninstall ] [ List Files ] [ Delete ]
37.   Extended Help    1.0     [ Uninstall ] [ List Files ] [ Delete ]
38.   SimplePortal    2.3.4     [ Uninstall ] [ List Files ] [ Delete ]

Sono

I have prolems with the 'previous topic' and 'next topic' links that are available over the topic title headers in the right corner in SMF by default. When you click them, the topics load in a way that this is added to the end of their url: '?prev_next=next#new'

Google indexed both the pure URLs of my topics, and the URLs with this tag. Do you think this can result in a penalty? I am a bit worried.

Can you disable this previous-next topic link somehow?

InfoStrides

Quote from: Sono on March 17, 2012, 10:02:02 AM
I have prolems with the 'previous topic' and 'next topic' links that are available over the topic title headers in the right corner in SMF by default. When you click them, the topics load in a way that this is added to the end of their url: '?prev_next=next#new'

Google indexed both the pure URLs of my topics, and the URLs with this tag. Do you think this can result in a penalty? I am a bit worried.

Can you disable this previous-next topic link somehow?

Yes, you can instruct Google not to index them right inside your Google Webmasters.

Go to "Site Configuration" ===> "URL parameters"

You can set the rules there.

Advertisement: