URL Examples: 1) mydomain.com/coding/mysql/ 2) mydomain.com/coding/mysql/?contactId=333&UTM=aff 3) mydomain.com/coding/?contactId=333 This is my htaccess file RewriteEngine On RewriteRule ^(.+)/(.+)/?$ index.php?book=$1&chapter=$2 [NC,L,QSA] RewriteRule ^(.+)/?$ index.php?book=$1 [NC,L,QSA] So I print_r($_REQUEST) on the index.php file to see what I was getting: 1) Array ( [book] => coding [chapter] => mysql/ ) 2) Array ( [book] => coding [chapter] => mysql/ ..
I not use Laravel I write my own framework and there are 2 .htaccess on image you can see. The problem is when I write on url ishop2.loc/ – as this and automatically added /public./ How can I fix this problem ? enter image description here Sourc..
I block directory using .htaccess using auth method but the directory is still not accessible. I use basic auth method https://user:[email protected]/. Here is my htacccess code. Please help me to let me know what’s wrong with that code. It shows Forbidden if try to access directory. order allow,deny Allow from all AuthType Basic AuthName "Restricted ..
If I’ve got a .htaccess on another server. .htaccess AuthName PASSWORD AuthType Basic Require valid-user If I want to access a file on that server from another server and want to authenticate so I can access this. Is there a way to submit the auth credentials in a HTTP request such as Guzzle using PHP? ..
Hi I am having a problem with my project, on my domain (www.example.com/) I have my wordpress project and in the sub folder (www.example.com/app) I have my laravel project, now I have tried to configure in different ways the .htaccess file but it always returns 404 error and it is as if it did not ..
I am fighting with .htaccess file and I need some help for resolve my problem. I try to configure the file .htaccess for: delete extensions shows 404 error but something its wrong, I try to explained: page.php (that exists) -> page #OK pagenotfound (that not exits) -> redirect 404 # OK pagenotfound.php (the same like ..
I’m working on a project in PHP and I want my URLs to look friendly user, so this is what I currently have: www.site.com/index.php?view=1 www.site.com/index.php?view=2&id=21 www.site.com/index.php?view=3&id=88 And this is what I expect to have: www.site.com/teacher www.site.com/student?id=21 www.site.com/book?id=88 Is there any way to to without htaccess, only by using PHP? If don’t, how can I map ..
Am using codeigniter 3(HMVC) and utilized default routing system provided by the codeigniter. i want to add a username to the every URL after successful login. Example: http://localhost/project_name/controller_name/method_name/ to http://localhost/project_name/dynamic-logged-username-slug/controller_name/method_name/ here i just need to display the username and i won’t be use that name for any kind of process is it possible to achieve ..
I am currently in a web programming class. When uploading the site to the server, the class as a whole has been having issues working around not having permission to write files or move them. My instructor suggested that a web.config or .htaccess may be a work-around. Will one of these solve the issues? I ..
I need to have this URL domain.com/var1/var2/?var3= i.e (domain.com/jingle/bells/?id=3033) to receive parameters this way domain.com/?var1=&var2=&var3= i.e. (domain.com/?title=jingle&subtitle=bells&id=3033) On top of that is it possible to have infinite number of variables after var3? Like: domain.com/?var1=&var2=&var3=&var4=&var5… to be domain.com/var1/var2/?var3=&var4=&var5… Thank you!! Sourc..