Thanks for your answer Ric. I've tried your solution but it doesn't work. maybe it's the cms script. it uses a mysql database and all the links and pages are saved to that database. when i'm working with localhost it works but when i change to mydomain.ro only the main paige works and the links to the pages show the error message i've posted earlier.