Stumped on something that ought to be simple and wondering if we have an mod-rewrite gurus that have some ideas...

I have urls in the form of:

http://olddomain.com/report?view=report&reportId=63

the only significant thing to me here is that report id, which is now something like:

http://newdomain/a-specific-seo-friendly-named-page

I already have the base old domains redirecting to the base of the new domain and can pick up the pattern match on the report id, but can't seem to get the rewriterule to the new domain.

thoughts much appreciated!!

cheers,

Jim

Recommended Answers

All 2 Replies

The simplest way I know of doing this is by making the SEO'ed url into: domain.com/seo-friendly-name-63

The actual dynamic page could then use regex to fetch the number from the end of the page title string and know what report ID # to fetch.

thanks for the reply .. the key is that new site is already SEO complete (and working well!). Now we need to changeover from the old style urls and make the numbers go away completely. The problem seems to be all the new urls get the query string appended and I just need that NOT to happen. thanks!!

Jim

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.