I have different folder that have same file name and often same content
Is there a way to include file from other folders instead of creating the same file for those that have the same content?
Example of a directory structure
rome
- index.php
- detail.php
- show.php
another folder
london
- index.php (same content as rome/index.php folder)
- detail.php (different content as rome/detail.php folder)
- show.php (same content as rome/show.php folder)
Then london folder must include only detail.php that have different content from rome/detail.php and "index" and "show" must be loaded from rome folder
Now I create the file that have same content with this content
require ../rome/index.php
and work, but I have to create file for every folder and when I move or rename file in "rome" folder, I must do the same for each folder...
Server is linux, then I can use also a string in htaccess if possible....