Project configuration problem
Posted by: gawellus (---.internetdsl.tpnet.pl)
Date: September 15, 2014 12:52PM

Hi,

I've got a problem with some project I was given today.

I've created new folder in "www" WAMP directory, and put there my project.
But index.php is in another folder called "public_html"

So path to my project system files is "www/my_project/"
And path to index.php is "www/my_project/public_html"

The problem is that when I open project in browser, it has wrong navigation links and also wrong links to img, css, and so ..

ex. link to img looks like "localhost/css/ilumax/img/logo.png"
so it missed "my_project/public_html" part.


I hope my English isn't so bad and my question is quite understandable winking smiley

Thanks for any help!

Options: ReplyQuote
Re: Project configuration problem
Posted by: Otomatic (Moderator)
Date: September 15, 2014 02:52PM


Options: ReplyQuote
Re: Project configuration problem
Posted by: gawellus (---.internetdsl.tpnet.pl)
Date: September 15, 2014 03:10PM

so, You suggest to use virtual hosts ?

but, is there any other possibility like htaccess to fix my problem ?

Options: ReplyQuote
Re: Project configuration problem
Posted by: Otomatic (Moderator)
Date: September 15, 2014 04:42PM

Hi,

With the use of VirtualHost, you host your site exactly as in a hoster. This is the only way to not have any problems.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote


Sorry, only registered users may post in this forum.