Page is a not externally linkable
- Code, Content, and Presentation
-- Apache Web Server
---- Changing URL


calvinmicklefinger - 6:38 pm on Jun 6, 2010 (gmt 0)


I understand.

That is the conclusion I was coming to.

An alternative thought I had was to send all pages to the index page, with the content page identified as a parameter or variable. For example, immediately after the .com, I /?i-3. Then have the main page run through a php switch statement and insert the appropriate content. Then make a "pretty" url which would entail only removing the query string.

Reckon that would work?

Here's what I'm thinking so far. Create this link ...

<a href="http://mysite.com/?i=2">Click Here</a>

and on the index.php page ...

<?php
switch ($i) {
case 0:
include page1.htm;
case 1:
include page2.htm;
case 2:
include page3.htm;
}
?>

Then figure out the .htaccess to make a "pretty" url.

Could that work?


Thread source:: http://www.webmasterworld.com/apache/4147566.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com