I have a blog in laravel 5.8 and I want to redirect 301 to / it there is index.php in the url. My .htaccess is this
Tag: apache
shell_exec not running in websever
I have an apache web sever with php file /var/www/html/test.php, and servo.py in the same directory. When I go to localhost/test.php it doesn’t work. Yet when I run test.php in an IDE it works fine. …
How to rewrite URLs with .htaccess (removing id?=1)
I’ve looked all over and have yet to figure out how to make this work, I’m sure it’s very simple for someone who knows what they’re doing. For starters, I have made sure that mod_rewrite is enabled …
Redirecting all domains to a single https domain
I recently bought a hosting plan which provides three domains. Since there is only one version of my website, the idea is to redirect all the domains to one single domain ( I think this is also more …
phpmyadmin not opening and showing “The page isn’t working HTTP ERROR 500”
Below is my apache2 php.ini log file line which shows Fatal error. [Thu Jan 23 11:21:04.634143 2020] [php7:error] [pid 9929] [client ::1:56044] PHP Fatal error: Allowed memory size of 2097152 …
Does PHP do any parsing on the php.ini file?
Running PHP Version 7.1.30 under RHEL 7.7. I’m wanting to bump memory_limit, but wasn’t sure if I had the syntax right (i.e. 256M or 256MB). So to start with I put a bad value “Hugo” in as the memory_limit setting. The trouble with this is the result of phpinfo() (run under httpd) literally has the string “Hugo” in place, i.e.:
Different pages on same domain show different cookies (by target domain)
I have a Single Sign On implementation that adds cookies to a website when people login. I see the cookie in the chrome Inspector when looking at one page, but not in another page on the same domain. …
How can I resolve a cross-site Google Analytics cookie `SameSite=None` warning in Chrome on Apache 2.4 and PHP 7.1?
My client’s website is getting these SameSite cookie warnings in Chrome. I’ve searched all over and I can’t get the warnings to go away. The cookies are due to Google Ad Conversion Tracking on a Wordpress Site. The site is on a Apache/2.4.7 (Ubuntu) hosted by DreamHost running PHP 7.1 for compatibility reasons. To my .htaccess file, I’ve tried adding:
.htaccess – How to redirect URL to a folder and then to a PHP file
I am setting up a cache system for my blog (not a WordPress) and I want to store the cached files in a posts/ folder, so I don’t fill my root folder with post files. I have a file called post.php that creates these posts files if the slug corresponds to an actual post in a different website (I check
How to remove .php extension only for pages under a sub directory?
I am trying to remove .php extension for only pages under a subcategory folder of the website. currently: example.com/blog/my-first-blog.php what i want: example.com/blog/my-first-blog/ I have tried the following rule in .htaccess (placed in root) but it still shows .php Answer I figured it out I just had to create .htaccess file under the “/guide/” directory. with the following rule note