473,791 Members | 3,277 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

It's here... but not really

Hi group, hope you can help.

I have a URL on my website that is currently under the directory
mysite.com/something/

But I'd like to change the URL to mysite.com/anotherthing/

This is peasy to do, of course, but I have a really big Google
ranking under the /something URL, and I'm afraid that if I
transfer to the new URL, I'd lose all that.

Is there a way to put all my content under /anotherthing, but
make anyone typing in the URL /something still get all the same
content in /anotherthing?

..htaccess maybe? Or PHP headers? Am I making no sense?

Thanks a lot,
Paul.

Jul 16 '05 #1
11 2471
On Fri, 15 Aug 2003 17:50:39 +0100 in
<message-id:bh********** @newsreader.mai lgate.org>
"Paul Neave" <pa**@FAKEneave .com> wrote:
Hi group, hope you can help.

I have a URL on my website that is currently under the directory
mysite.com/something/

But I'd like to change the URL to mysite.com/anotherthing/

This is peasy to do, of course, but I have a really big Google
ranking under the /something URL, and I'm afraid that if I
transfer to the new URL, I'd lose all that.

Is there a way to put all my content under /anotherthing, but
make anyone typing in the URL /something still get all the same
content in /anotherthing?

.htaccess maybe? Or PHP headers? Am I making no sense?

Thanks a lot,
Paul.

If you're using Apache as a Web server Paul, it's best done with that:
RewriteEngine on
RewriteRule ^/something/(.*)$ http://mysite.com/anotherthing/$1
[R=permanent, L]
(note, the RewriteRule line should be on a single line, will wrap in
post)

HTH

Regards,

Ian

--
Ian.H [Design & Development]
digiServ Network - Web solutions
www.digiserv.net | irc.digiserv.ne t | forum.digiserv. net
Programming, Web design, development & hosting.
Jul 16 '05 #2
have a look..
http://httpd.apache.org/docs/howto/htaccess.html

maybe some help ? dunno ;-) ?

"Paul Neave" <pa**@FAKEneave .com> wrote in message
news:bh******** **@newsreader.m ailgate.org...
Hi group, hope you can help.

I have a URL on my website that is currently under the directory
mysite.com/something/

But I'd like to change the URL to mysite.com/anotherthing/

This is peasy to do, of course, but I have a really big Google
ranking under the /something URL, and I'm afraid that if I
transfer to the new URL, I'd lose all that.

Is there a way to put all my content under /anotherthing, but
make anyone typing in the URL /something still get all the same
content in /anotherthing?

.htaccess maybe? Or PHP headers? Am I making no sense?

Thanks a lot,
Paul.

Jul 16 '05 #3

On 15-Aug-2003, "Paul Neave" <pa**@FAKEneave .com> wrote:
I have a URL on my website that is currently under the directory
mysite.com/something/

But I'd like to change the URL to mysite.com/anotherthing/

This is peasy to do, of course, but I have a really big Google
ranking under the /something URL, and I'm afraid that if I
transfer to the new URL, I'd lose all that.

Is there a way to put all my content under /anotherthing, but
make anyone typing in the URL /something still get all the same
content in /anotherthing?

.htaccess maybe? Or PHP headers? Am I making no sense?


In the apache config file httpd.conf or .htaccess add
redirect /something http://mysite.com/anotherthing

--
Tom Thackrey
www.creative-light.com
Jul 16 '05 #4
On Fri, 15 Aug 2003 18:21:12 +0100 in
<message-id:bh********** @newsreader.mai lgate.org>
"Paul Neave" <pa**@FAKEneave .com> wrote:
"Tom Thackrey" wrote...
In the apache config file httpd.conf or .htaccess add
redirect /something http://mysite.com/anotherthing

Cool - that works, but it changes the URL in the browser to
/anotherthing, whereas I want it to stay as /something but load
in the content from /anotherthing.

Does rewriting rather than redirecting do this?

Ian - I am running Apache, but I don't know how to implement
the script you gave. Do you put it in an .htaccess file?

Many thanks,
Paul.

Ahh, the demo rewriterule I gave you would ahve the same effect as the
Redirect, a new URL.. and ironically, I changed this in my example as I
originally had it set to display the initial /something URL ;)

In a .htaccess file, you should (if enabled anyway.. you _might_ have to
contact your host if it's not your server) be able to use something
like:
RewriteEngine on
RewriteBase /
RewriteRule ^/something/(.*)$ /anotherthing/$1 [L]
This will then take all files / dirs (/something/here.php) by matching
with the (.*) and by using the $1 transfering anything matched to the
new URI.
This would then read /anotherthing but the URL remain /somethign

If your host allows the use of mod_rewrite (which is used for these
rules), you chould be able to drop that above, in the top of your
..htaccess file.. and bingo!

Personally, I've always added stuff to my srm.conf (Apache config) but
that's just me being me =)
HTH clarify further.

Regards,

Ian

--
Ian.H [Design & Development]
digiServ Network - Web solutions
www.digiserv.net | irc.digiserv.ne t | forum.digiserv. net
Programming, Web design, development & hosting.
Jul 16 '05 #5
"Jim Dabell" wrote:
However, unless you have some convincing evidence that says you will
be punished by search engines for doing the right thing, I'd just use
mod_redirect to emit 301 Moved Permanently responses


I suppose it would be better in the long run to permanently move the
URL to the new URL so it has a greater chance of being ranked higher
in Google. It's just the intermediary time that worries me.

I already have many websites linking to the current URL, which is the
main reason for its current high ranking. Would sending a 301 response
make Google follow the link through, keeping the ranking?

Thank a lot,
Paul.

Jul 16 '05 #6


However, unless you have some convincing evidence that says you will
be punished by search engines for doing the right thing, I'd just use
mod_redirect to emit 301 Moved Permanently responses

Yes, do this sort of thing using Apache 301s, not in PHP. Apache's
redirect system is simple to use, and very tried and tested.

I suppose it would be better in the long run to permanently move the URL
to the new URL so it has a greater chance of being ranked higher in
Google. It's just the intermediary time that worries me.

I already have many websites linking to the current URL, which is the
main reason for its current high ranking. Would sending a 301 response
make Google follow the link through, keeping the ranking?


You'd do better to post that question online within www.webmasterworld.com
, or just search their archives for answers to this already. My view is
that google will update the address within 1-2 months without affecting
your page rank. Google explicitly says that webmasters *should* use HTTP
redirects if changing URL structures.

Also, bear in mind that if there are any links to the old URL, you should
ideally get people to update them, but my experience is that Google
associates the old name with the new name such that their effect on page
rank is no difference, if that makes any sense.

Martin Lucas-Smith www.geog.cam.ac.uk/~mvl22
www.lucas-smith.co.uk

Senior Computing Technician (Web Technician)
Department of Geography, University of Cambridge (01223 3)33390

& Webmaster, SPRI
Scott Polar Research Institute, University of Cambridge
Jul 16 '05 #7
Paul Neave wrote:
Hi group, hope you can help.

I have a URL on my website that is currently under the directory
mysite.com/something/

But I'd like to change the URL to mysite.com/anotherthing/

This is peasy to do, of course, but I have a really big Google
ranking under the /something URL, and I'm afraid that if I
transfer to the new URL, I'd lose all that.

Is there a way to put all my content under /anotherthing, but
make anyone typing in the URL /something still get all the same
content in /anotherthing?

.htaccess maybe? Or PHP headers? Am I making no sense?

Thanks a lot,
Paul.


Stating the blummin' obvious, but how about a symlink from /something to
/anotherthing?

Jul 16 '05 #8


Stating the blummin' obvious, but how about a symlink from /something to
/anotherthing?


Why use an OS-specific (i.e. *nix-only) device when your webserver
provides the facility already?

Martin Lucas-Smith www.geog.cam.ac.uk/~mvl22
www.lucas-smith.co.uk

Senior Computing Technician (Web Technician)
Department of Geography, University of Cambridge (01223 3)33390

& Webmaster, SPRI
Scott Polar Research Institute, University of Cambridge
Jul 16 '05 #9
Martin Lucas-Smith wrote:

Stating the blummin' obvious, but how about a symlink from /something to
/anotherthing?

Why use an OS-specific (i.e. *nix-only) device when your webserver
provides the facility already?

Martin Lucas-Smith www.geog.cam.ac.uk/~mvl22
www.lucas-smith.co.uk

Senior Computing Technician (Web Technician)
Department of Geography, University of Cambridge (01223 3)33390

& Webmaster, SPRI
Scott Polar Research Institute, University of Cambridge


Because this is the most efficient and simple way to achieve the result.
Admitedly not the most elegant :)

Jul 16 '05 #10

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

Similar topics

47
2624
by: Will Stuyvesant | last post by:
Hello all, So Zope still lives, yay. Well, I like that they use Python. <rant> What amazed me is they write that they "added types to the variables and hope that it will be added to the Python project too". Really. ROFL.
13
5060
by: Jason Huang | last post by:
Hi, Would someone explain the following coding more detail for me? What's the ( ) for? CurrentText = (TextBox)e.Item.Cells.Controls; Thanks. Jason
1
1566
by: Fredrik Rodin | last post by:
All, I've been trying to get this question answered before and I got some hints, but nothing that really fit my needs. Here's what I'm aiming at: I create x number of LinkButton at run-time in a UserControl, no probs. However, when I click on on of them, I want to fetch which one of them that
17
1583
by: John Saunders | last post by:
<tongue in="cheek"> <p> I've kept quiet about this for the past few weeks, but I just can't keep silent any more. </p> <p> There are too many people in this newsgroup who use the term "ASP" to refer to "ASP.NET". In the future, would you please try harder to use the correct terminology:
23
1627
by: John Rivers | last post by:
This shows you how to implement html rendering methods and libraries in ASPX pages. This also means super fast debugging as no re-initialising of IIS is required after editting! This gets around the ridiculous situation of ASPX pages not being allowed to have methods. I am working on a way to do this with classes as well!
7
2409
by: Andrea | last post by:
Hi there - I'm hoping someone can help me; I've been struggling with this for a few days! :-) I have a webpage that is comprised of many forms containing questions. As the user answers one of the questions, that form is hidden and the next is displayed. Also, as the user answers each question a "count" variable is updated based on their response. I would like the question to show up on the left side and the answer to show up in the...
161
7887
by: KraftDiner | last post by:
I was under the assumption that everything in python was a refrence... so if I code this: lst = for i in lst: if i==2: i = 4 print lst I though the contents of lst would be modified.. (After reading that
30
7713
by: MikeC | last post by:
Good People, I'm writing a backup utility that uses a chdir() to go into the source directory (in which the files reside that I want to back up), so I don't want to use chdir() to get into the target directory (where the backup copies will be kept, on another drive). I can successfully test whether the target directory exists or not using findfirst(), but if it doesn't, I wanted to create it using mkdir(), but it doesn't like the path...
10
2446
by: AA Arens | last post by:
I do have a database with customer info in it. To avoid it will be taken out of our office, is it possible to make it not-readable after a certain period? then every let say seven days, I needs to "extend the license", so it will last another week. It consists of queries, forms, and tables, format Access 2003. Bart
0
10207
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10156
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
9997
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6776
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
5435
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...
0
5559
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4110
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
3718
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2916
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.