Jump to content

serve dynamic content based only on url requested


webguy262

Recommended Posts

Working on a site with a couple hundred virtually identical landing pages to maximize SEO.

 

Rather than hard code the pages, I am wondering if there is a way to have one page that handles all the url's and dynamically codes and loads with title, keywords, content & alt tags all specific to the particular url requested.

 

Seems like the challenge is doing it in a way that does not constitute a redirect.

 

Is it better to do this in the .htaccess?

 

 

Thanks for the response...

 

The sitemap for the site will have links to ~200 landing pages that should ideally have url's ending in html.

 

Rather than have to create ~200 distinct pages, I thought it might be possible to have all the xxx.html url's call the same php page, and dynamically

serve up the various pages, with titles, keywords, alt tags, content, etc. programmed to reflect the url requested.

 

I want to do this with pages that load as html pages, tho, not php pages with get's in the url.

 

Thoughts?

 

I've got this in the htaccess...

 

    redirect 301 /newsite/oldfile.html  http://newwebdesign.com/newsite/new.php

 

... and it is working.

 

The new.php file will dynamically create the content I want IF i can access the URL of the file requested BEFORE the redirect.

 

That is, I need to access 'oldfile' from new.php.

 

Can that be done?

 

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.