Re: Htaccess Problem Url Friendly Programming Web Development by Dani The .htaccess makes the URL accessible from a friendly URI. However, it does not change any of your HTML code for you. You will still need to modify all of your HTML code to link to the new friendly URI instead of the original URL. Re: Htaccess Problem Url Friendly Programming Web Development by Dani … set the values for `BASE_URL`? > The same link without Constant PHP: What do you mean by… Htaccess Problem Url Friendly Programming Web Development by Adolfo_1 …=$1 [NC,L] **DINAMIC URL** work fine only with defined CONSTANT: Example <a href="<?php echo BASE_URL.READ_LEX… Re: Htaccess Problem Url Friendly Programming Web Development by Adolfo_1 …-di-sospensione-trib-cagliari OK OK The same link without Constant PHP: http://localhost/mysite/readlex.php?slug=Provvedimento-di-sospensione… Re: Htaccess Problem Url Friendly Programming Web Development by Adolfo_1 …;http://localhost/mysite/"); > What do you mean by 'Constant PHP`? BASE_URL //= http://localhost/mysite/ READ_LEX //= readlex.php?slug= My… Re: Htaccess Problem Url Friendly Programming Web Development by Dani I suppose I’m not properly understanding your question. Do you mean when you go to the URL in your browser localhost/mysite/readlex.php?slug=Le-mura-di-Lucca it doesn’t load, but when you go to the rewritten URL it works fine? Re: Htaccess Problem Url Friendly Programming Web Development by Adolfo_1 NO! I meant that URL loads but not friendly I have to put these STATIC URLs inside the text retrieved from the database as I cannot insert php strings. Example from database example that htaccess makes unfriendly : <em><a href="../read-lex.php?slug=Provvedimento-di-sospensione-Trib-Cagliari">Vedi &nbsp;SENTENZA&… Re: Htaccess Problem Url Friendly Programming Web Development by Dani I apologize that I still am misunderstanding you. I'm confused what you mean by "example from database", because it seems your question is about htaccess and PHP. I'm confused what is being retrieved from the database In your second example, what are the values of BASE_URL and READ_LEX? Additionally, your .htaccess file said … Re: Htaccess Problem Url Friendly Programming Web Development by Dani I also think the problem is that with mod_rewrite on, READ_LEX begins with / and with mod_rewrite off, READ_LEX *ends* with /. Is the value of BASE_URL set to http://localhost/mysite or http://localhost/mysite/ ? You might be ending up with a URL that looks like http://localhost/mysitereadlex/slug instead of http://localhost/mysite/readlex/… Re: Htaccess Problem Url Friendly Programming Web Development by Adolfo_1 I expressed it badly. They are both dynamics. But: href="<?php echo BASE_URL.READ_LEX ?>Provvedimento-di-sospensione-Trib-Cagliari" // result = localhost/mysite/readlex/Provvedimento-di-sospensione-Trib-Cagliari href="localhost/mysite/readlex.php?slug=Provvedimento-di-sospensione-Trib-Cagliari" // … Re: Htaccess Problem Url Friendly Programming Web Development by Dani Isn't that expected behavior? Re: Htaccess Problem Url Friendly Programming Web Development by Adolfo_1 Solved the problem with this htaccess in mode rewrite ON But I don't understand why. I have to enter friendly url directly href="<?php echo BASE_URL.READ_LEX ?>Provvedimento-di-sospensione-Trib-Cagliari" // OK result = localhost/mysite/readlex/Provvedimento-di-sospensione-Trib-Cagliari href="… Re: Htaccess Problem Url Friendly Programming Web Development by Adolfo_1 Thank you for your patience C++ programming error Programming by sammieb … calculators' << endl; I am getting the error: character constant too long for its type. I believe I am getting… Re: What are 4 benefits of digital marketing? Digital Media Digital Marketing by bessieexum … for continuous improvement, marketers can make data-informed decisions for constant progress. Digital marketing gives businesses an unprecedented global reach, allowing… Re: Why we need digital marketing agency Digital Media Digital Marketing by bessieexum Digital marketing agencies are crucial in helping businesses effectively engage their online audience. Their experts specialize in various digital channels, providing targeted and strategic marketing. By employing cutting-edge tools and analytics, these agencies deliver cost-effective, adaptable, measurable solutions to expand brand presence and … Re: C++ programming error Programming by rproffitt You'll want to escape those quote marks and maybe more. Read https://en.cppreference.com/w/cpp/language/escape Example follows: #include <iostream> using namespace std; int main() { cout << "furey, edward \"sphere calculator\" at https://www.calculatorsoup.com/calculators/geometry-solids/… Re: Dell Dimension 9150 freeze on POST with constant beep Hardware and Software Hardware by finito constant beep? Hmm is it coming and going or just is … How much follow up maintenance is needed in SEO ? Digital Media Digital Marketing Search Engine Strategies by BlackhatSEO Constant weekly or monthly update would be better to attain better … SMO major changes in 2014 Digital Media Digital Marketing by diggdirectory Constant social media updates make upkeep of marketing materials a challenge. … Re: hi guyz... Programming Software Development by chaines51 Constant space doesn't necessarily mean no temporary values, it just means that as the function scales (IE, your array grows to 7,8,9,etc values), that more space is not used. Re: Few questions about pointers Programming Software Development by mike_2000_17 …gt;>All these "Pointer to a constant", "Constant points to constant" are confusing me. Wouldn't &…these are two alternative syntax for declaring a "constant pointer". This means that the address stored in… * const ptr[/ICODE]: This simply a constant pointer to a constant value. This means that neither the pointer'… Re: problem with const Programming Software Development by deceptikon Constant means it cannot be changed, but you've already learned …, right? As pertains to this issue, compile time constant basically means that the constant can be used as the size of an… of those two things, it's not a compile time constant. Re: Word Association Game Community Center Geeks' Lounge by bluedos82 Constant destruction --> little sister Re: New build won't power on Hardware and Software Hardware by Serunson Constant shorting out of things is very bad for electrical components. Were you wearing anti-static gear while fixing ur machine? If not add static to your problem list. Are there any blown capacitors on your motherboard? (small cyclinder things) If one of those has gone i think you need a new computer, or get it to a repair shop ASAP. Re: Thoughts Of The Day. Community Center Geeks' Lounge by debasisdas Constant dripping hollows out a stone. Re: best way to get good back link Digital Media Digital Marketing by cartergarth Constant link building to selected quality sites is the best. Re: Benefits for Bulk mailing Digital Media Digital Marketing by Dani Constant Contact, Mailchimp, and SendGrid are the most popular ones that I'm familiar with. constant Programming Web Development by lloydsbackyard i have this code so to hinder from access when the url is directly type i understand BASEPATH is a constant but can anyone give me idea on how to cofigure the basepath? do i need to create a constant folder and constant php file? if (! defined('BASEPATH')) exit('No direct script access allowed') Re: Constant charecter pointer Programming Software Development by csmgsarma …;; [/CODE] str1 refers to a char which is constant(Read only) so you get this not working. […[CODE] char *const str2 = "constant pointer"; [/CODE] str2 refers to a constant pointer to a char, here address is…[0] = 'P'; // ok [/CODE] str3 is a constant pointer to a constant character, both address and value are read only. An…