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 :)
|
|