Page 1 of 1
how can I avoid to show "xampp" in the url?
Posted:
18. September 2013 02:13
by towfiqi
Version info: ApacheFriends XAMPP Version 1.8.3(Windows)
My website is hosted like below:
https://ip-address/abc/
Now, If I delete "abc" from url above (which is directory under htdocs and website name) the url become automatically
https://ip-address/xampp
and showing error page.
(please check)
What I want is: when I delete/remove "abc"(website name) it should not show automatically the name "xampp" in the url...it should show the url...
how can I avoid to show "xampp" in the url when I delete wbesite name/directory name? Please reply.
Re: how can I avoid to show "xampp" in the url?
Posted:
18. September 2013 04:45
by Altrea
Delete your \xampp\htdocs\index.php
Re: how can I avoid to show "xampp" in the url?
Posted:
18. September 2013 05:49
by towfiqi
Thanks for your quick reply...I have deleted index.php now it is showing index.html which is "IT WORKS".
I have deleted that index.html too now the probelm is directory listing I mean directory folders ate showind inside browser which I do no t like to show...how can I disable to show directory structure in my browser??? Plese reply.
Re: how can I avoid to show "xampp" in the url?
Posted:
18. September 2013 06:11
by Altrea
Maybe you should explain more detailed what you want to see and not what you all don't want to see.
Re: how can I avoid to show "xampp" in the url?
Posted:
18. September 2013 06:18
by towfiqi
I dont want to see the directory listings
it shoudl show some access denied message
Re: how can I avoid to show "xampp" in the url?
Posted:
18. September 2013 06:32
by Altrea
Inside your
\xampp\apache\conf\httpd.conf you should fine a line like this
- Code: Select all
<Directory "C:/xampp/htdocs">
inside this Directory Block you should have a line beginning with
Options.
In this line remove the word
Indexes, save the file and restart Apache.
Re: how can I avoid to show "xampp" in the url?
Posted:
18. September 2013 06:54
by towfiqi
Thank you very very much. One more question if you dont bother:
Can I change the text what I see now below now:
I mean which file to edit to change the text?
------------------------------------------------------------------------------------
Access forbidden!
You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.
If you think this is a server error, please contact the webmaster.
--------------------------------------------------------------------------------------------------------------
Thanks again!
Re: how can I avoid to show "xampp" in the url?
Posted:
19. September 2013 02:04
by towfiqi
Where can I modify above/below text as well email address?(contact the webmaster)
------------------------------------------------------------------------------------
Access forbidden!
You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.
If you think this is a server error, please contact the webmaster.
--------------------------------------------------------------------------------------------------------------
Re: how can I avoid to show "xampp" in the url?
Posted:
19. September 2013 05:26
by Altrea
repeating your post (pushing threads in general) will NOT result in quicker responses. The opposite is the truth.
towfiqi wrote:Where can I modify above/below text as well email address?(contact the webmaster)
The Apache manual knows the answer:
http://httpd.apache.org/docs/2.4/custom-error.html