473,765 Members | 1,958 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 #1
13 4338
On Wed, 28 Mar 2007, Massimo Fabbri wrote:
Maybe it's a little OT,
Indeed.

Ask in <news:comp.info systems.www.aut horing.site-design>
whether to redirect.

Ask in <news:comp.info systems.www.ser vers.unix>
how to redirect.

--
In memoriam Alan J. Flavell
http://groups.google.com/groups/sear...Alan.J.Flavell
Mar 28 '07 #2
Andreas Prilop wrote:
On Wed, 28 Mar 2007, Massimo Fabbri wrote:
>Maybe it's a little OT,

Indeed.

Ask in <news:comp.info systems.www.aut horing.site-design>
whether to redirect.

Ask in <news:comp.info systems.www.ser vers.unix>
how to redirect.
Thanks :-)

Mar 28 '07 #3
On 03/28/2007 10:14 AM, Massimo Fabbri wrote:
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
The hosting provider might allow you to create a custom 404 error page.
If so, you can make that page a script that possibly redirects to one of
the new pages.

If the hosting provider doesn't allow scripting, you could create a
static 404 page that lists the user's probably intended destinations
(which are the pages that were moved during the site reorganization) .

Mar 28 '07 #4
Scripsit Massimo Fabbri:
I know the golden rule of "eternal" URIs,
If you _know_ it, you follow it. If you just heard of it and was told it's a
great idea, you might still fail to _know_ it. Knowing means that you
believe it and you have rational grounds for believing it.
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.
Of course changing can be avoided. Just keep the old addresses, and design a
better scheme for _new_ addresses. Typos are irrelevant. When you establish
something, it stops being a typo. URLs are identifying strings, not
sentences. Well, it might be annoying if it contains substrings that look
like misspelled words, but so what? Continuity and search engine presence is
more important than helping a casual user to type a URL in the rare cases
where it needs to be _typed_ (or read).
This causes two problems:
- 404 errors for users who have bookmarked this company's web pages
And poor 404 error pages at that.
- (and *most importantly*) current pages are indexed on Google and
other search engines. Changing URLs abruptly creates obvious search
engine positioning and ranking problems.
Indeed. That's crucial.
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.
Then the company should consider better hosting. Cheap hosting with poor
quality is bad marketing. Only rich people and companies can afford cheap
stuff. :-)
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?
You just painted yourself into a corner. So don't change the existing URLs.

If you really must change them, for some odd reason, and you cannot use the
real thing (server-side redirection) create new pages with new, better URLs
and with the contents of the existing pages. That is, create duplicates. Add
<metaredirect s into the old pages, so that they still have their content
but get redirected when the user agent obeys such redirects. Also add normal
links to the new URL, with text saying that this is the new address of the
page. Later, if you find that search engines have indexed the new URLs, you
might consider removing the content proper of the old URLs (i.e., leave just
the title, the meta tag, and the link there).

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

Mar 28 '07 #5
Jukka K. Korpela wrote:
If you really must change them, for some odd reason, and you cannot use
the real thing (server-side redirection) create new pages with new,
better URLs and with the contents of the existing pages. That is, create
duplicates. Add <metaredirect s into the old pages, so that they still
have their content but get redirected when the user agent obeys such
redirects. Also add normal links to the new URL, with text saying that
this is the new address of the page. Later, if you find that search
engines have indexed the new URLs, you might consider removing the
content proper of the old URLs (i.e., leave just the title, the meta
tag, and the link there).
Thanks for your post. It was really useful. 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) 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."

Max

Mar 28 '07 #6
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?

--
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 29 '07 #7
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>

Max
Mar 29 '07 #8
Massimo Fabbri wrote:
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
If your Web server is Apache and if the Web site has its own domain, try
the following.

Create your own 404 page. Call it my404.html. It should explain that
the Web site has new page names and that visitors should start
navigating from the home page. Be sure to include the URL to the new
home page in the my404.html page (even if that's the same as the URL to
the old home page). Install my404.html in the root of the domain (in
the same directory as the old home page).

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

This does not require scripting or any special access to the server.
Also, this does not require access to any part of the Web server other
than where your Web site is. All it requires is that you be able to
upload files to the server, that you have your own domain, and that the
server is Apache (which is quite common). There might even be a
variation that works even if you don't have your own domain.

--

David E. Ross
<http://www.rossde.com/>.

Anyone who thinks government owns a monopoly on inefficient, obstructive
bureaucracy has obviously never worked for a large corporation. © 1997
Mar 29 '07 #9
On Wed, 28 Mar 2007 18:57:34 -0800, David E. Ross wrote:
> ErrorDocument 404 /my404.html
Install .htaccess in the root of the domain (where you have installed
my404.html).
I would add that one may as well cover some other common errors
at the same time. For example:

ErrorDocument 400 /er/er400.html
ErrorDocument 401 /er/er401.html
ErrorDocument 403 /er/er403.html
ErrorDocument 404 /er/er404.html

In these examples the error files are in a directory called "er."
Mar 29 '07 #10

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

Similar topics

7
4868
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
4700
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
5459
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
2707
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
9398
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
10160
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...
0
8831
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
7378
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
6649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5275
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3924
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
3531
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2805
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.