Set php_value for custom URL with .htaccess file – Apache
I want to set a PHP value just for some URL. For example, I have many URLs and one of them is http://example.com/admin. I want to add post_max_size php_value for this URL only.
I want to set a PHP value just for some URL. For example, I have many URLs and one of them is http://example.com/admin. I want to add post_max_size php_value for this URL only.
I have this file structure: New frontend index.php backend index.php If Can can I make frontend and backend folder hide like localhost/new/frontend/index.php Will become: localhost/new/
I had htaccess which worked for many years with a command like this: RewriteRule ^products/(.*).php product.php?page=$1&%{QUERY_STRING} Mapping all items under products folder to be served with product.php file Today, suddenly all URLs started giving 404. After many hours of digging,…
I have url generated from pagination: $next = $articles->nextPageUrl(); However this new url always leads to redirect. For SEO reasons i need to put there final url (generated after all redirects). How can i achieve this properly in Laravel? E.g.…
This is a very strange error, i am trying to fix it without success. I am trying to check if a link contains a string: $actual_link = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; echo $actual_link; The output is: http://xxx.xxx.xxx.xxx/plesk-site-preview/***********.com/xxx.xxx.xxx.xxx/ Then: if(strstr($actual_link,"plesk-site-preview") ){ echo"<meta name='robots' content='noindex'>";…
Hey, I am trying to make my url a bit prettier with apache mod_rewrite. html (root) css js layout sites (folder) profil.php work.php index.php At the moment my url looks like this: https://example.com/sites/profil.php https://example.com/sites/work.php And I want that it looks…
Here are two lines in robots.txt file: Disallow: /messages Disallow: /qanda/edit/ What paths is this /messages point to? And what about /qanda/edit/? Is the / in the end of the second path useless? Or it has a specific meaning? Or…
I’m using Twitter API for my own app for almost year now. All was great but after Twitter made some changes I’m receiving the same problem every time: Callback URL not approved for this client application. Approved callback URLs can…
I’m using Twitter API for my own app for almost year now. All was great but after Twitter made some changes I’m receiving the same problem every time: Callback URL not approved for this client application. Approved callback URLs can…
I want to disable https from a single link, forcing it to http. https://tipografiasartore.it/autodiscover/autodiscover.xml I added this string to my .htaccess file but it ain't working: RewriteEngine on RewriteCond %{HTTPS} on RewriteRule ^autodiscover/autodiscover.xml http://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] My .htaccess so far: <IfModule…