Allow symbolics in image url's ex: %
Posted by: mhvejsel (80.62.245.---)
Date: January 29, 2015 01:25PM

Hello everyone :-)
We have a problem on a website, the wamp server do not allow to use symbolics in my image url's.

With %
[produkt-guiden.dk]


Without %
[produkt-guiden.dk]


Hope anyone can help me.
I cannot change my image names...

Thanks winking smiley

Options: ReplyQuote
Re: Allow symbolics in image url's ex: %
Posted by: RiggsFolly (---.as43234.net)
Date: January 29, 2015 02:53PM

Sorry I do not understand the question.

Please show a sample of the actual code.

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

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 databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: Allow symbolics in image url's ex: %
Posted by: mhvejsel (80.62.245.---)
Date: January 29, 2015 03:06PM

Hello again.
Please see the 2 links.

There are a symbolic (%) in the 1 url, and that is not working.
The link without working fine.

The image is on the server, but i cannot see it because wamp not allow (%) in image url's.

Options: ReplyQuote
Re: Allow symbolics in image url's ex: %
Posted by: Otomatic (Moderator)
Date: January 29, 2015 03:50PM

Hi,

It is URI Percent Encoding.

You write: 2_IC_LSTU%5b1%5d.JPG that means 2_IC_LSTU[1].JPG

May be the Apache module "rewrite_module" should be enabled.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: Allow symbolics in image url's ex: %
Posted by: mhvejsel (80.62.245.---)
Date: January 30, 2015 07:43AM

Correct.
My rewrite module is enable an working fine.
I host an Magento store :-)

This is only a problem on images url's

Options: ReplyQuote
Re: Allow symbolics in image url's ex: %
Posted by: RiggsFolly (---.as43234.net)
Date: January 30, 2015 10:04AM

This sounds like it might be an encoding issue. Maybe you had better check the encoding of the page i.e.

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

Does yours match the actual page encoding?



Out of interest why are you url encoding it with, why not just use the actual filename?

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

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 databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: Allow symbolics in image url's ex: %
Posted by: mhvejsel (80.62.245.---)
Date: January 30, 2015 10:47AM

It's not a page but only a image, so i cannot insert something in the code.
We have to use these filenames because we get it from the supplier.

It has to be a setting in Apache.

Options: ReplyQuote
Re: Allow symbolics in image url's ex: %
Posted by: RiggsFolly (---.as43234.net)
Date: January 30, 2015 03:40PM

Have you tried decoding the data you get from whereever with the image name in??

Like

<?php
$a = '2_IC_LSTU%5B1%5D.JPG';

echo urldecode($a);

which will produce a usable string i.e.

2_IC_LSTU[1].JPG

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

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