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..

this is what happens now

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

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

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


You MUST use VirtualHost. See The need for Virtual Host

Wampserver 3.1.7 32 bit - Apache 2.4.38 - PHP 7.3.1/7.2.14/7.1.26/7.0.33/5.6.40 - MySQL 5.7.25 - MariaDB 10.3.12
Wampserver 3.1.7 64 bit - Apache 2.4.38 - PHP 7.3.1/7.2.14/7.1.26/7.0.33/5.6.40 - MySQL 5.7.25/8.0.14 - MariaDB 10.3.12
PhPMyadmin 4.8.4 - MysqlDumper 1.24.5
on W10 and W7 Pro 64 bit
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 10 Pro 64bit) (Wampserver 3.1.3 32bit & 64bit)
<Apache 2.4.29/2.2.31> <PHP 7.2/7.1/7.0/5.6/5.5/5.4> <MySQL 5.7.19/5.6.39/5.5.28>
<MariaDB 10.2.14> <phpMyAdmin4.8.1> <MySQL Workbench 6.3.10>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your MySQL databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote

Sorry, only registered users may post in this forum.