Uploaded image path incorrect

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Uploaded image path incorrect

Postby jsingh99 » 27. February 2016 00:27

Hi,
I am using xampp on a windows 10 machine. I am new here so forgive me if I have posted incorrectly so here goes.
When I upload an image in my localhost setup of xampp the file path to the image is <img height="99" alt="Jaginder Singh Mudhar" src="http://localhost/www/beta/www/upload/users/jag_88/images/Business_supermarket_1456519878.jpg">
However when I view the source in the browser I noticed that /index.php/ has been added to the file path after www ie
<img height="99" alt="Jaginder Singh Mudhar" src="http://localhost/www/beta/www/index.php/upload/users/jag_88/images/Business_supermarket_1456519878.jpg">
How may I get rid of this path.
I do not wish to change the site code as the site code works on the live website. I rather config xampp to get rid of the extra path that it has placed.
Any advice would be greatly appreciated

Jag
jsingh99
 
Posts: 1
Joined: 27. February 2016 00:16
Operating System: windows 10

Re: Uploaded image path incorrect

Postby Nobbie » 28. February 2016 10:55

jsingh99 wrote:However when I view the source in the browser I noticed that /index.php/ has been added to the file path after www ie


This is not a Xampp or Apache issue, i think you have installed a certain application, which may have put an .htaccess file into installation folder, which includes a faulty rewrite URL which appends this index.php. Or it is done by the software itself. This typically can happen, when you copy an existing application from an online server to your local Xampp without adapting the configuration correctly (only a clue, in fact i have no idea what you are doing there).

If you cannot find any explanation, you should ask in a forum for that piece of software (you did not tell us about).

P.S.:
jsingh99 wrote:I do not wish to change the site code as the site code works on the live website. I rather config xampp to get rid of the extra path that it has placed.


Exactly what i thought, you have a copy from a running system local on your PC, but you did not change the configuration. Ask in a forum for that software (whatever it is, wordpress or drupal or any shop or ...). That is not an issue for Xampp.
Nobbie
 
Posts: 13182
Joined: 09. March 2008 13:04


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 89 guests