Forum Moderators: phranque

Message Too Old, No Replies

Rewrite URL so that all requests go to one page

         

ogletree

6:54 pm on Oct 4, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I'm trying to set up a website that only has one page of code. I want to set up the htaccess so that any url that is typed in requests from this one file. I have tried several things and nothing seems to work. The one page is index.php.

ogletree

7:39 pm on Oct 4, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Never mind the whole time I did not have mod_rewrite loaded in http_conf

g1smd

11:18 pm on Oct 4, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



That's a very odd request in some ways.

Is it going to be a rewrite, where every URL returns a "200 OK" status?

If every "page" has the same content then that creates infinite Duplicate Content, or is contol passing to a script that generates the content based on the requested URL (a different page for each new URL)? If so then that could be very useful.

Or, is it generating a redirect such that only the single target can be indexed?

ogletree

12:06 pm on Oct 5, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Not if that page is pulling stuff from somewhere else.