Same site in subdirectories...
Posted: Thu Feb 02, 2012 12:46 pm
Hello, my name is Chris, I'm an Italian PHP developer working in England.
First of all thank you, this is a nice website, I often come here to read some posts.
I have a question, I hope I can explain it well and you could help me.
At work I developed a website, let's call it /mysite/
This site must have some copies, that will be the exact copies of the website, but with a contact page with differents logos and addresses for every copy. For example:
/mysite/company1/ , /mysite/company2/ ecc... Every company will have a different contact page: /mysite/company1/contact.php etc...
I was thinking to set a GET variable and then changing the url with the .htaccess: from /mysite/index.php?company=company1 to /mysite/company1.
The old developer created something like 20 subdirectories and 20 different copies of the website, all in html. I think this is a good way to do this.
Any advice?
Thanks
First of all thank you, this is a nice website, I often come here to read some posts.
I have a question, I hope I can explain it well and you could help me.
At work I developed a website, let's call it /mysite/
This site must have some copies, that will be the exact copies of the website, but with a contact page with differents logos and addresses for every copy. For example:
/mysite/company1/ , /mysite/company2/ ecc... Every company will have a different contact page: /mysite/company1/contact.php etc...
I was thinking to set a GET variable and then changing the url with the .htaccess: from /mysite/index.php?company=company1 to /mysite/company1.
The old developer created something like 20 subdirectories and 20 different copies of the website, all in html. I think this is a good way to do this.
Any advice?
Thanks