Page 1 of 1

Are there some special URLs in XAMPP instalation?

PostPosted: 30. June 2014 09:20
by svrcekmichal
Hi,

I've currently installed new xampp-win32-1.8.3-4-VC11 on my working station. I copied my project from work, changed httpd-vhosts.conf to look like this:

Code: Select all
NameVirtualHost *
  <VirtualHost *>
    DocumentRoot "C:/Users/svrcek/XAMPP/htdocs/"
    ServerName localhost
  </VirtualHost>
  <VirtualHost *>
    DocumentRoot "C:/Users/svrcek/XAMPP/htdocs/eshop/"
    ServerName eshop.local
  <Directory "C:/Users/svrcek/XAMPP/htdocs/eshop/">
    Order allow,deny
    Allow from all
  </Directory>
</VirtualHost>


Everything was working fine, but when i entered URL like

Code: Select all
eshop.local/error/action


it went to 404 Page not found. There' s no folder error in my htdocs, all i wanted to do is just to redirect this page
to index.php and set $_GET['url'] = 'arror/action'.

My current .htacces file in C:/Users/svrcek/XAMPP/htdocs/eshop/

Code: Select all
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?url=$1 [L,QSA]


Can someone help me? Need to make it work as soon as possible, thanks

Re: Are there some special URLs in XAMPP instalation?

PostPosted: 30. June 2014 12:22
by Altrea
Are there some special URLs in XAMPP instalation?


All URLs that are used in an Alias, Location or Proxy definition.
There are a bunch of them in XAMPP Apache (depending on which config files are activated or not some of them are maybe not used):

  • /cgi-bin/
  • /error/
  • /examples
  • /icons/
  • /licenses
  • /manual
  • /my-gateway/
  • /phpmyadmin
  • /php-cgi/
  • /security
  • /server-info
  • /server-status
  • /uploads
  • /webalizer
  • /webdav

In your case /error/ is already used

Re: Are there some special URLs in XAMPP instalation?

PostPosted: 30. June 2014 13:14
by svrcekmichal
Is it possible to reuse for example that /error/ or it' s better to change it in my code for example to /err/ ?

Re: Are there some special URLs in XAMPP instalation?

PostPosted: 30. June 2014 14:12
by Altrea
This Alias is used for the default Apache error Pages (everywhere ErrorDocuemnt is used this Alias is used).
So it is possible to change it in XAMPP, but you have to search and replace multiple files.