vairaspeaks — 2010-04-14T02:36:49-04:00 — #1
I want to create arnd 10,000 static pages...
say like www.example.com/record1 and www.example.com/record2 and each page has different content and the contents are in db..
So my doubt is if i do it using .htacess and do and internal redirection like www.example.com/record.php?id=1 and www.example.com/record.php?id=2 is this considered as static pages?? is this the correct way of doin??
Thanks in advance.
paul_wilkins — 2010-04-14T04:41:22-04:00 — #2
What you're creating is a dynamic page, as the content of the page is dependent on the values contained in the querystring.
vairaspeaks — 2010-04-14T05:19:56-04:00 — #3
Yeah i get u i am doin a dynamic page, my representation was wrong.
k then wat is the best way to create 10,000 pages like this?? I cannot change my url, it needs to be the same in any case. So wat is the best way of doin this other than htaccess?
paul_wilkins — 2010-04-14T05:22:19-04:00 — #4
Why is htaccess a problem, and what is the issue with dynamic vs static?
vairaspeaks — 2010-04-14T05:30:29-04:00 — #5
Okay this the case. The site now works like this. it has a search box in its home page and if u search using that it goes to a search.php page. I have arnd 10,000 records. Now this the only way of seeing these records. But now, I want separate page for each record this is for SEO stuff and also will be useful for referencing, So i want a unique url for all my records and i wish to have the url it in that way. Thank you.
paul_wilkins — 2010-04-14T05:32:40-04:00 — #6
htaccess can easily do that for you then.
I'll see if we can get this thread in to the Apache Configuration forum, because that is where the htaccess experts reside.
vairaspeaks — 2010-04-14T05:45:52-04:00 — #7
Wow Thank you. i appreciate your help.
dklynn — 2010-04-14T06:09:53-04:00 — #8
What you're asking for is found in the mod_rewrite tutorial linked in my signature. Read it, ask questions (if you need to - the examples there should show you how to do this), post your attempt at mod_rewrite then I'll comment on it until you learn how it works and can implement it on your site.
Thanks for the move.