http-status-code-301

Getting "mywebsite.org/" to resolve to "mywebsite.org/index.php"

At my work we have various web pages that, my boss feels, are being ranked lower than they should be because "mywebsite.org/category/" looks like a different URL to search engines than "mywebsite.org/category/index.php" does, even though they show the same file. I don't think it works this way but he's convinced. Maybe I'm wrong though...

Web Service Failing when Using DNS in URL but works fine if I use the actual IP in the URL Can not figure out the problem.

I am trying to call a web service from asp.net 3.5 application. I have a URL that has the DNS in it and when it is used I get the following Error. (the xxxxxx is there for privacy concerns) The request failed with the error message: -- 301 Moved Permanently Moved Permanently The document has moved here. When I use the URL with th...

drupal redirecting api

I want to redirect this the request for "homebox/1" to "homebox/1/[uid]" if a logged in user tries to access it. I do not care about annonymous users at this point yet. This is the code I put into the top page-homebox.tpl.php: if(!is_numeric(arg(2))){ global $user; if($user->uid){ if(count($_GET) > 1){ $get = array(); foreach($_GE...

Apache - Rewrite Rule confusion

Redirect 301 /resort.php/FOO/BAR http://www.sitename.com.com/index.php RewriteRule ^/direct/(.*) /direct/$1 [QSA,L] # access non i18n files directly RewriteRule ^/([a-z]{2}\/.*) /$1 [QSA,L] #any language subdirectory should be left alone RewriteRule ^/(.*\/$) /en/$1index.php [QSA,L] #fix for links ending in / Rewrite...

Some Problem with htaccess!

How can I redirect my users from example.com / or www.example.com to new.example.com but I dont want to redirect some specific urls like: www.example.com/test.php api.example.com/testo.php www.example.com/forum/index.php I did: RewriteEngine on RewriteCond %{HTTP_HOST} ^example.com$ [OR] RewriteCond %{HTTP_HOST} ^www.example.com$ Re...

Apache CGI redirect to absolute URI doesn't work

I have Apache 2.2.13 running in console mode on Windows. I have made an executable that handles requests. In a certain case, when it detects a URL pointing to a directory but has not trailing slash, it tries to redirect to the same URL with the missing slash appended. The exit-code is set to 301. Strangely enough, having this in the resp...

301 redirects with Joomla on IIS

Hello, I'm running Joomla on IIS. I've got about a dozen categories (financial newsletter publishers) that I'm using to organize about 40 articles (financial newsletters). I'm using the joomla built-in SEO so the URL's look like this: http://www.global-autotrading.com/autotraded-newsletters/13-angel-publishing/43-options-trading-pit.ht...

http redirect: 301 vs. 302 (temporary vs. permanent)

Is the client supposed to behave differently? How? ...

htaccess Redirect from subdomain to domain

I'm re-working a site and I'm attempting to move a forum from a subdomain (board.example.com) to the primary domain where the path will be example.com/index.php/forums/ I've set up my htaccess file like so: RewriteEngine On RewriteCond %{HTTP_HOST} ^(.*).example.com RewriteRule ^(.*)$ http://www.example.com/index.php/forums/ [R=301...

.htaccess 301 redirect of single page

After a site redesign, I've got a couple of pages that need to be redirected. Everything is staying on the same domain, just a couple of things have been reorganised and/or renamed. They are of the form: /contact.php is now: /contact-us.php Using the .htaccess file, I've added this line, which is the one I find recommended most: Red...

htaccess mod rewrite w/ dynamic match

I am moving a blog from one server to another and adding a subdomain, so the path will change from - http://www.example.com/queen/index.php/2009/winners-and-losers/ to - http://blogs.example.com/queen/2009/winners-and-losers/ What mod_rewrite rules would I add to the .htaccess under /queen/ on www.example.com to 301 redirect to t...

Mass 301 redirects in ASP.NET, including pages that need to redirect to a different place depending on the query string parameters

We have several pages of our site indexed using old non-SEO friendly URLS such as http://www.domain.com/DocumentDetails.aspx?id=555. Recently we implemented routing that uses slugs stored in the database and looks up the slug to forward you to the right page using routing, for example: http://www.domain.com/Documents/Title-of-the-Documen...

301 Redirect. Need help. Having a hard time.

I'm trying to use mod_rewrite to redirect URLs and can't get anything to work. Here is what I'm hoping to do: Old URL: http://www.example.com/asp.pl?%5Fpuri=astore.amazon.com%2Fthegi02-20%2Fdetail%2FB0001L0DFA%2Fassid Needs to redirect to: www.example.com Anyone know of any way to do that? ...

Wordpress Rewrite Redirect Failure

I'm helping a friend recover from the mess outsourcing a wordpress website caused him (mistake #1) and I have this weird error. The hosting he is using appears to be redirecting www.domain.com to domain.com (NFI why) automatically which works fine in every browser except IE (i know right!). So adding the first redirect fixed that, until ...

htaccess 301 redirect dynamic url

I am moving my site to new domain. Need to redirect pages from old-site.com/oldpage.php?id=X to new-site.com/newpage-X (X is number) Why this rule does not work? RewriteEngine on RewriteRule ^oldpage.php?id=(.*)$ http://new-site.com/newpage-$1 [R=301,L] ...

Apache - Redirect 301 pdf to pdf with spaces ( binary file )

What I want: To 301 redirect /file_new.pdf to /file new.pdf ( %20 aka space between file and new ) I'm aware that: I can rely on RewriteRule 301 which uses mod_rewrite, using a solution from this thread: @ http://stackoverflow.com/questions/410811/modrewrite-with-spaces-in-the-urls I can rename the file to not include spaces...

php 301 redirects actually doing a 302 redirect

I have been googling for this but no one appears to have the answer. This post describes the problem well: http://www.mail-archive.com/[email protected]/msg198576.html Server is Windows 2008 FastCGI PHP 5 Anyone solved this problem? ...

SEO and 301 redirects - Can they have relative paths or must they be absolute?

SEO and 301 redirects - Can they have relative paths or must they be absolute? When doing a 301 redirect for a page, are the BOTs/Spiders going to treat a 301 that goes to a relative path (redirect="../") the same as one that goes to an absolute path (redirect="http://www.somewebsite.com/apage/"). For example I have a parent page with ...

not able to 301 redirect url in drupal

i am trying to redirect an url from location a to b using .htaccess with the following code RewriteRule ^accessibility$ http://example.com/topic/accessibility/ [R=301,L] it is not working i have this turned on RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] RewriteRule ^ http://%1%{REQUEST_URI} [L,R=301] ...

bots and 301 redirect

I have changed the structure of the URLs of my site more than 6 months ago. I detect the use of legacy URLs and redirect to the new URL with a 301 status code. I verified with flidder that the status code is correctly returned upon the request. But bots (yahoo slurps, googlebot, etc.) are still hitting the old URLs. Is there something I ...