Wamp directory issues
Posted by: tetris (---.virtua.com.br)
Date: August 03, 2017 10:35PM

Hi guys, im new to forum. i got a interesting issue with wamp. i making this news website and working on feeds page.The problem im having is that for this feed system i want to keep things separate. im on the root with the index page and want to keep all new webpage news on separate directories.i got a folder name feed where goes all my news with the full page and a second folder where i keep the thumbnail of the pages in the feed folder. every time i acess any of the .php files it opens the directory instead of the url, also when i try to acess a page in feed folder from a link in a page in thumb nail, the link adress starts from the thumbnail page..


exe:
this is what happens now

in folder thumb > file index.php >href="feed/ police.php but instead opens file
c:/wamp/thumb/feed/police.php.


and i want it to do :
in folder thumb >file index.php >href="feed/ police.php to open the file of other directory
c:/wamp/feed/police.php.

also if i place localhost/ it comes with the c:/wamp/www/localhost/thumb/feed/police.php.

want it to opens the folder from the www root and not from the thumb´s folder. thanks in advance



Edited 4 time(s). Last edit at 08/03/2017 10:52PM by tetris.

Options: ReplyQuote
Re: Wamp directory issues
Posted by: Otomatic (Moderator)
Date: August 04, 2017 10:19AM

Hi,

You MUST use VirtualHost. See The need for Virtual Host

------------------------------------------------------------------------------------------------------------
(W7 Pro 64 bit)-Wampserver 3.1.0 32 bit - Apache 2.4.27 - PHP 7.1.10/7.0.24/5.6.31 - MySQL 5.7.19 - MariaDB 10.2.8
Wampserver 3.1.0 64 bit - Apache 2.4.27 - PHP 7.1.10/7.0.24/5.6.31 - MySQL 5.7.19 - MariaDB 10.2.8
PhPMyAdmin 4.7.4 - MysqlDumper 1.24.5

Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »

Options: ReplyQuote
Re: Wamp directory issues
Posted by: tetris (---.virtua.com.br)
Date: August 04, 2017 01:11PM

Is´nt this the same as add a alias? like i add the folders do allias hopping it would work.

Options: ReplyQuote
Re: Wamp directory issues
Posted by: RiggsFolly (Moderator)
Date: August 04, 2017 01:40PM

You are always welcome to ignore our suggestions!

You are welcome to try that, but the recommended solution would be a Virtual Host as Otomatic suggested.

---------------------------------------------------------------------------------------------
(Windows 7 Pro 32bit) (Wampserver 3.0.6 32bit)
<Apache 2.4.23/2.2.31> <PHP 7.1.2/7.0.16/5.6.28/5.5.38/5.4.45/5.3.29> <MySQL 5.7.10/5.6.17/5.5.28>
<MariaDB 10.1.21> <phpMyAdmin4.6.5.2> <MySQL Workbench 6.3.6.511>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin -- WAMPServer alternate Repo
-?-?-?- Backup your MySQL databases regularly Here is How dont regret it later! Yes even when developing -?-?-?-

Options: ReplyQuote


Sorry, only registered users may post in this forum.