homepage Welcome to WebmasterWorld Guest from 54.198.42.105
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Yahoo / Yahoo Search Engine and Directory
Forum Library, Charter, Moderators: martinibuster

Yahoo Search Engine and Directory Forum

    
Weird Homepage URL Endings
How to correct extra variables at end of URL
underglass




msg:4336990
 3:57 pm on Jul 8, 2011 (gmt 0)

Hi,

I checked my Yahoo site explorer, and my homepage is being returned with odd URL endings www.mywidgets.com/?p=1514

And there are a lot of them!

I have a WP Platform e-commerce site.

Does anyone know what might be causing this?

Many Thanks!

 

g1smd




msg:4337014
 4:56 pm on Jul 8, 2011 (gmt 0)

You can easily redirect those requests to the canonical URL.

You'll need two lines of code in your .htaccess file.

underglass




msg:4337019
 5:06 pm on Jul 8, 2011 (gmt 0)

Can you help me through this? (I am not sure if appropriate for this thread, so if not, my apologies) I am not a webmaster pro, but have tried to redirect via .htaccess, and it catches some, but not others.

This is what I have but it does not seem to work

RewriteEngine On
RewriteCond %{HTTP_HOST} ^mywidgets.com
RewriteRule (.*) http://www.mywidgets.com/$1 [R=301,L]


# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

g1smd




msg:4337049
 5:51 pm on Jul 8, 2011 (gmt 0)

What is it meant to do, and in what way does it not work?

underglass




msg:4337064
 6:11 pm on Jul 8, 2011 (gmt 0)

I just did a little research - what is there works. I need to write a new one for dynamic URLs to the homepage. So, for example:

I want

www.mywidgets.com/?kw=round yellow widgets

(it's the ?kw that frustrates me. I just cannot understand how it is being created in the first place. So Weird!)

to redirect to my homepage

www.mywidgets.com/

The redirect dynamic rewrite rules I have researched have not yet worked. Would it be better to post this to [webmasterworld.com ]?

g1smd




msg:4337066
 6:15 pm on Jul 8, 2011 (gmt 0)

Your non-www to www code is non-optimal. It fails to redirect www requests with appended port numbers.

There's just over 10 000 posts with example code for "redirects with parameters" shown here in the WebmasterWorld Apache forum. It's a question that is asked several times per week.

lucy24




msg:4337118
 7:55 pm on Jul 8, 2011 (gmt 0)

Are you trying to get rid of the queries entirely, or just change to different ones? To dump all of them, append a ? to the end of your Replace string. This wipes all queries. To replace them with something else, include the new one in your Replace string.

If you are doing anything at all with queries, you need to put %{QUERY_STRING} as a RewriteCond.

And how did this thread end up in the Yahoo forum?!

underglass




msg:4337164
 9:37 pm on Jul 8, 2011 (gmt 0)

There's just over 10 000 posts with example code for "redirects with parameters" shown here in the WebmasterWorld Apache forum. It's a question that is asked several times per week.

I will look there. Thank you!


And how did this thread end up in the Yahoo forum?!

My bad. It ended up here because I thought my site issue might related to how Yahoo indexes a WP site, but when the fix was .htaccess related, it became an Apache thread. (I am seeing these dynamic links in Yahoo site explorer)

I want to get rid of all of them. I am going to go now to the Apache forum for answers.

Thanks for the help :)

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Yahoo / Yahoo Search Engine and Directory
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved