User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Linux Servers and Apache section within the Tech Talk category of DaniWeb, a massive community of 427,849 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,809 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Linux Servers and Apache advertiser: Programming Forums
Views: 646 | Replies: 0
Reply
Join Date: Feb 2008
Posts: 7
Reputation: jimesten is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 1
jimesten's Avatar
jimesten jimesten is offline Offline
Newbie Poster

Dead query string urls to new extensionless urls

  #1  
Apr 11th, 2008
I had posted this question a bit ago but probably didn't articulate it quite right to get a good answer. I'm stumped on something I thought would be easy ..

So... I've got old urls that are no longer active (but were indexed in search engines) in the form of:

www.site.com/something?view=123

Where... the 123 in the query string matches up to an equivalent page on a search engine optimized site ... the domain is the same because nameservers have been swapped over, but we know the old links are indexed so we want folks to be able to get the equivalent pages on the new site which are in form:

http://www.site.com/index.php/one-th...something-else

...so, the exercise is "based on the id number in the old query string, point to a new page which is both completely unrelated in terms of path, filename, etc and extensionless.

I think I've concluded that mod_rewrite "can" do this, thought is must be done in a pair of rules rather than one, but I've hit a wall trying to make it work. For each of a few dozen sites, I have about a half dozen of these that need to be redirected to a new page based on a different id number in the old url..

Any help much appreciated .. I've read the apache mod_rewrite docs and every tutorial I could find, but can't seem to get over the hump!

cheers all,

Jim
AddThis Social Bookmark Button
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Linux Servers and Apache Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Other Threads in the Linux Servers and Apache Forum

All times are GMT -4. The time now is 3:20 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC