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?

 

 

Link to comment
Share on other sites

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?

 

Link to comment
Share on other sites

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?

 

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.