•
•
•
•
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,202 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 2,250 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: 642 | Replies: 0
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
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
•
•
•
•
•
•
•
•
DaniWeb Linux Servers and Apache Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Other Threads in the Linux Servers and Apache Forum
- Previous Thread: how to integrate PHP and Apache with mysql on linux
- Next Thread: Asp on apache



Threaded Mode