Welcome Guest, Not a member yet? Register   Sign In
allow apostrophe in URL
#1

[eluser]waxdaddy[/eluser]
I need to allow apostrophe's in my URL's but i can't seem to get it working by adding it to the allowed list

i tried this...

Code:
$config['permitted_uri_chars'] = 'a-z\' 0-9~%.:_=+-';

but no luck... any pointers as to what i need to do?

Cheers
#2

[eluser]Evollution[/eluser]
Code:
$config['permitted_uri_chars'] = "a-z\' 0-9~%.:_=+-";


try now
#3

[eluser]John_Betong[/eluser]
Quote:I need to allow apostrophe’s in my URL’s but i can’t seem to get it working by adding it to the allowed list
 
I do not know the reasons for wanting the apostrophe in an URL but I think you are "opening a can of worms".
 
Do you want your users and SEO Bots to use the apostrophe?
 
I have gone to great lengths to ensure there are only alphabetical and numeric characters in myt URLs.
 
Take a look at:
Code:
$this->load->helper('url');

$SEO_friendly_url = url_title("You're URL with an apostrophe");  
// returns:  'youre-URL=with-an-apostrophe'
 
Also take a look at ./config/route.php. You can trap any URL and route it a chosen controller.
 
 
 
#4

[eluser]waxdaddy[/eluser]
Users might enter one and its also a legacy thing as the urls have to match the original urls...
#5

[eluser]waxdaddy[/eluser]
[quote author="Evollution" date="1296607362"]
Code:
$config['permitted_uri_chars'] = "a-z\' 0-9~%.:_=+-";


try now[/quote]

Already tried that, didn't make the slightest difference.




Theme © iAndrew 2016 - Forum software by © MyBB