473,770 Members | 1,973 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

URL Redirection problems

Maybe it's a little OT, but I'll give it try anyway....

I was asked to maintain and further develop an already existing small
company's web site.

I know the golden rule of "eternal" URIs, but in this case changing them
cannot be avoided as they were badly chosen when thwe site was first
delevoped: URLs with spaces, typos, etc. So I have to use new URLs and
put the content in them.

This causes two problems:
- 404 errors for users who have bookmarked this company's web pages
- (and *most importantly*) current pages are indexed on Google and other
search engines. Changing URLs abruptly creates obvious search engine
positioning and ranking problems.

Simple, some may say, there are *various* URL redirection techniques hat
are both transparent to the users and well accepted by search engines
(particularly 301 - Permanent redirection). Unfortunately, I don't have
access to the web server config file and, as this is a rather cheap
hosting, even though it runs on apache, I cannot cerate a .htaccess file
and put my redirections there.

Apart from changing hosting provider (which cannot be done at the
moment) or using html or javascript redirection (which is a big no no
for search engines) how can I solve this problem?

Max
Mar 28 '07
13 4339
David E. Ross wrote:
Create an ASCII text file named .htaccess (or use the existing
.htaccess). (Yes, the name starts with a period.) In that file, put
the following:
ErrorDocument 404 /my404.html
Install .htaccess in the root of the domain (where you have installed
my404.html).
Yes, the server is Apache, but as I said, for some reasons, our hosting
provider's ftp server prevents me from uploading a file called .htaccess
or ranaming a file to .htaccess after having uploaded it with another name
This is what I get
ftpren htaccess .htaccess
350 RNFR accepted - file exists, ready for destination
550 Prohibited file name: .htaccess
ftp>

BTW, If I could use .htaccess, the problem would be easily solved: I
probably would not create a custom error 404 page, but rather use the
redirect directive within .htaccess. A few lines like this:
Redirect permanent olduri.html newuri.html

Unfortunately, I can't. I wrote to the hosting provider tech support.
Waiting for an answer.
Massimo
Mar 29 '07 #11
On 28 Mar, 16:14, Massimo Fabbri <mfabbri_SAY_NO _TO_SP...@tisca li.it>
wrote:
Apart from changing hosting provider
Send 301 redirects by configuring your .htaccess

Gain access to .htaccess by having your host enable it, or by moving
host (it's _that_ significant).

Delay any major site changes until you have this access.

Mar 29 '07 #12
Scripsit Massimo Fabbri:
Yes, I guess I have to
create new pages with better URLs and duplicate them with the old
names. There's only one concern to this: according to this article
(http://tinyurl.com/2yodj9)
That is,
http://www.bytestart.co.uk/content/p...-content.shtml
the rather new Google duplicate content
penalty applies to pages on the same w b site too: "Clarificat ion:
there is a real duplicate content penalty for content that is
duplicated with minor or no variation across the pages of a single
site."
The page you mention isn't brand new: it's dated December 2005.

I don't think the "clarificat ion" is much more than a myth, even though the
Google page
http://www.google.com/support/webmas...y?answer=35769
might be construed as supporting it:
"Don't create multiple pages, subdomains, or domains with substantially
duplicate content."
This is one of many warnings, and it hardly means much more than the
principle that you cannot improve your ranking using duplication. That is, N
copies of identical content is treated as one page, basically picking up one
of the copies. It would be pointless for Google to "punish" for duplication
so that duplicated content gets less attention than a simple page.

Anyway, if you think this is a serious risk, and you still want to change
URLs of existing pages (why, really?), then you can change the URLs and
leave just "HTML redirection" pages (with meta tags and links) at the old
URLs.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

Mar 29 '07 #13
Thu, 29 Mar 2007 03:52:52 +0200 from Massimo Fabbri
<mf************ *********@tisca li.it>:
Stan Brown wrote:
Wed, 28 Mar 2007 17:14:10 +0200 from Massimo Fabbri
<mf************ *********@tisca li.it>:
as this is a rather cheap
hosting, even though it runs on apache, I cannot cerate a .htaccess file
and put my redirections there.
Why not? What's to stop you from uploading a .htaccess just as you'd
upload any other file?

I tried. It gests rejected by the ftp server. I thought it was a problem
of my client, I tried with command line ftp: same outcome.
Finally I tried uploading a file called htacces and tehn rename it .htacces.
Result:
ftpren htaccess .htaccess
350 RNFR accepted - file exists, ready for destination
550 Prohibited file name: .htaccess
ftp>
Wow!

I agree with those who said: if you can't get this fixed, get a
different host. There are too many low-cost hosts out there for you
to have to put up with this nonsense.

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2.1 spec: http://www.w3.org/TR/CSS21/
validator: http://jigsaw.w3.org/css-validator/
Why We Won't Help You:
http://diveintomark.org/archives/200..._wont_help_you
Mar 30 '07 #14

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
4869
by: Bernd Liebermann | last post by:
Hi, I have a problem with redirection using the header function. The page towards which I redirect loads correctly, but the url in the browser's address bar is different is that of the redirecting page. Both pages are located in different directories, so that my relative links don't work in the page, because the browser retrieves the current directory from the wrong url in the location bar. This problem occurs only on the server of my...
3
8741
by: Phil Powell | last post by:
class DownloadGenerator { var $fullFilePath; function DownloadGenerator($fullFilePath) { $this->fullFilePath = $fullFilePath; } function &generateForceDownloadHeaders($fullFilePath = '') { // STATIC VOID METHOD
0
1687
by: itsharkopath | last post by:
Hi, Imagine a user in a hotspot, when he comes to the hotspot and tries to load a webpage (on the internet), he would automatically redirected to login page. I believe the following is to be done. There should be a DHCP server setup which gives the arriving clients IP, default router address etc. Where should the homepage redirection be done, 1. It could be done at the default router, the clients who haven't
2
4702
by: Rick N. Backer | last post by:
Hello folks, Novice type question here. I'm working with a very simple app here that takes a series of strings from the console. Once the end user has finished inputting the strings they are individually processed and the result displayed back to the console. The problem I am having occurs during I/O redirection. Here is where
52
5465
by: Gerard M Foley | last post by:
Can one write a webpage which is not displayed but which simply redirects the user to another page without any action by the user? Sorry if this is simple, but I am sometimes simple myself. Happy New Year -- Gerry
15
5147
by: Taki Jeden | last post by:
Hello everybody Does anybody know why w3c validator can not get pages that use 404 htaccess redirection? I set up two web sites so that clients request non-existent urls, but htaccess redirects calls to a script which parses the url and produces requested pages. It works fine with browsers, but when I try to validate the page I get a 404 error - which bewilders me, because I thought Apache does the redirection internally without sending...
8
2531
by: Luciano A. Ferrer | last post by:
Hi! I was following the http://www.seomoz.org/articles/301-redirects.php article, trying to do that with one of my test sites I added this to the .htaccess file: RewriteEngine On RewriteCond %{HTTP_HOST} !^domain\.com.ar RewriteRule ^/(.*) http://domain.com.ar/$1
13
2715
by: souissipro | last post by:
Hi, I have written a C program that does some of the functionalities mentionned in my previous topic posted some days ago. This shell should: 1- execute input commands from standard input, and also from a file conatining the commands 2- does the redirection of the input and output from and to files. 3- retrieve the environment variables like HOME,..
0
1458
by: doctordandy | last post by:
I am fairly new to this, but basically the gist of the problem is that I have a login page which Is supposed to redirect to a customer account page once the username and password are validated, this works fine when the user is using Mozilla Firefox, however; when using Internet Explorer the redirection does not work correctly; i.e. the page redirects to the login page again (the default action when the button URL is invalid). If this...
0
9618
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9454
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10259
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10038
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8933
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7456
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4007
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.