Category : .htaccess

Older version of laravel here, 5.7. I have a situation where I have a url like this http://127.0.0.1:8000// I have a catch all of this Route::get(‘{uri}’, [‘uses’=>’[email protected]’])->where(‘uri’, ‘(.*)’); The URL that comes into the render method is ”. I’m not quite sure the best way to take http://127.0.0.1:8000// and redirect that to http://127.0.0.1:8000. .htaccess doesn’t ..

Read more

I have this .htaccess file in my root laravel folder, site is hosted in subfolder but url is like this : https://maindomain/public/laravelsubdirectory <IfModule mod_rewrite.c> <IfModule mod_negotiation.c> Options -MultiViews </IfModule> RewriteEngine On # Force SSL RewriteCond %{HTTPS} !=on RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] RewriteCond %{REQUEST_FILENAME} -d [OR] RewriteCond %{REQUEST_FILENAME} -f RewriteRule ^ ^$1 [N] RewriteCond %{REQUEST_URI} (.w+$) ..

Read more

I have created my application using laravel and vue.js and hosted my application on server in subfolder inside public_html, Accessing it using url like this: https://maindomain.in/projectfolder/public/login but after login if i click on any link it points back to https://maindomain.in/dashboard and i get 404 not found in console for the api routes that are accessed ..

Read more

I have a login system on GoDaddy’s Economy hosting which I get logged out after 30 minutes of inactive, I tried change the session duration to a day with this: php_value session.gc_maxlifetime 86400 // in .htaccess, session.gc_maxlifetime = 86400 // in php.ini ini_set(‘session.gc_maxlifetime’, 86400); // and session_set_cookie_params(86400); // at the beginning of each page but ..

Read more

I have created a folder(ABC) inside the wp-content/uploads directory of my WordPress website where I am storing pdf files that are basically creating automatically at some trigger by the user. I’m trying to restrict the direct access of that pdf files i.e. pdf can only be accessible by the owner of that particular pdf when ..

Read more

I found a suspicious .htaccess in every folder and sub-folder in cPanel. Besides an ‘index.php‘ file in a sub-directory was renamed to ‘index.php_‘ and LAST MODIFIED was showing ‘Jul 25, 2021 3:29 PM’ in every file and folder. Content in .htaccess file is as follows: <FilesMatch ".(py|exe|phtml|php|PhP|php5|suspected)$"> Order Allow,Deny Deny from all </FilesMatch> I also ..

Read more