![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Method A) I make my main template and call it "domain.com/index.php" if i want to go to another page it would all be pulled up through that same file. ie: index.php?page=about or index.php?page=articles. Using this method makes it far easier to make changes to the template as I go. I change a single file, and it effects every page. My fear is that search engines will see this as just one page, and not a bunch of seperate pages. Method B) For every page (about.php or services.php) I make a copy of template, and make changes accordingly. |
#3
| |||
| |||
|
|
d0x <dan (AT) no (DOT) spam> typed: Method A) I make my main template and call it "domain.com/index.php" if i want to go to another page it would all be pulled up through that same file. ie: index.php?page=about or index.php?page=articles. Using this method makes it far easier to make changes to the template as I go. I change a single file, and it effects every page. My fear is that search engines will see this as just one page, and not a bunch of seperate pages. Method B) For every page (about.php or services.php) I make a copy of template, and make changes accordingly. why not get a combination of both. Do you use Apache as your webserver? Can you use mod_rewrite on it? If so, you could have method b) to the outside, using about.php and have method a) on the inside, so that your script runs as index.php?page=about. The idea is to rewrite the request (well, it's done by an additional internal request, but that shouldn't get you into trouble with performance). http://httpd.apache.org/docs/mod/mod_rewrite.html http://httpd.apache.org/docs/misc/rewriteguide.html |
#4
| |||
| |||
|
#5
| |||
| |||
|
|
I just answered my own question. just for kicks i tried making a ".htaccess" file with the following contents: RewriteEngine on RewriteRule search http://www.google.com then popped open mydomain.com/search, and sure enough it brought me right there. ![]() |

#6
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |