tagged [.htaccess]
.htaccess redirect http to https
.htaccess redirect http to https I have an old url (`www1.test.net`) and I would like to redirect it to `https://www1.test.net` I have implemented and installed our SSL certificate on my site. This is...
Enabling error display in PHP via htaccess only
Enabling error display in PHP via htaccess only I am testing a website online. Right now, the errors are not being displayed (but I know they exist). I have access to only the `.htaccess` file. How do...
- Modified
- 24 Nov at 05:10
Deny access to one specific folder in .htaccess
Deny access to one specific folder in .htaccess I'm trying to deny users from accessing the `site/includes` folder by manipulating the URL. I don't know if I have to deny everything and manually make ...
.htaccess not working on localhost with XAMPP
.htaccess not working on localhost with XAMPP i m using XAMPP but i m not able to use .htaccess file at local host. i m trying so many times.. Online working good. but local host showing My root fold...
- Modified
- 25 Jan at 18:36
How to deny access to a file in .htaccess
How to deny access to a file in .htaccess I have the following .htaccess file: I am trying to forbid visitors to access the followi
- Modified
- 21 Jun at 19:56
htaccess redirect to https://www
htaccess redirect to https://www I have the following htaccess code: I want my site to be redirected to `https://www.` with HTTPS, and en
- Modified
- 16 Dec at 16:32
Passthrough <filname>.png to <filename>8.png if IE<=6 and <filename>8.png exists
Passthrough .png to 8.png if IE8.png exists I just found out that by converting PNG32 to PNG8 via Photoshop will fix the PNG transparency bug in IE
Disable PHP in directory (including all sub-directories) with .htaccess
Disable PHP in directory (including all sub-directories) with .htaccess I'm making a website which allows people to upload files, html pages, etc... Now I'm having a problem. I have a directory struct...
.htaccess Redirect request to files exts in particular folder only
.htaccess Redirect request to files exts in particular folder only How do you write rules to redirect all requests to *.php and *.html files in upload/ folder to a text file name forbidden.txt in root...
301 or 302 Redirection With PHP
301 or 302 Redirection With PHP I'm considering using the following code during a website launch phase to show users a page while showing me the rest of the site. Is there a way to show the correct 30...
- Modified
- 21 May at 15:5
How Can I Remove “public/index.php” in the URL Generated Laravel?
How Can I Remove “public/index.php” in the URL Generated Laravel? I need to remove `index.php` or `public/index.php` from the generated URL in Laravel; commonly path is `localhost/public/index.php/som...
- Modified
- 29 Jan at 00:30
.htaccess redirect doesn't hide url
.htaccess redirect doesn't hide url my .htaccess in the root folder includes the following lines : when I open the address [http://example.com/bla.htm](http://example.com/bla.htm), my browser doesn't ...
- Modified
- 19 Sep at 18:22
Hard redirect file.php to /file (when /file is already being transparently redirected to /file.php)
Hard redirect file.php to /file (when /file is already being transparently redirected to /file.php) Am already transparently redirecting requests for `/file` to `/file.php` -- accessing `/file` shows ...
- Modified
- 16 Aug at 09:7
.htaccess redirect www to non-www with SSL/HTTPS
.htaccess redirect www to non-www with SSL/HTTPS I've got several domains operating under a single `.htaccess` file, each having an SSL certificate. I need to force a `https` prefix on every domain wh...
.htaccess redirect all pages to new domain
.htaccess redirect all pages to new domain Which redirect rule would I use to redirect all pages under `olddomain.example` to be redirected to `newdomain.example`? The site has a totally different str...
- Modified
- 20 Dec at 13:31
How can I use `scp` to deploy a website's `.htaccess` file?
How can I use `scp` to deploy a website's `.htaccess` file? I am currently using the following command to upload my site content: This works great except that the .htaccess file is not sent. Presumabl...
- Modified
- 7 Aug at 16:41
How to increase apache timeout directive in .htaccess?
How to increase apache timeout directive in .htaccess? How do I increase the apache timeout directive in .htaccess? I have a LONG $_POST['script'] that takes a user probably 10 minutes to fill in all ...
Redirect entire site with htaccess to other domain
Redirect entire site with htaccess to other domain I want to redirect entire site from one domain to other. I works when i declare RewriteRule with R=301 but user can easy notice that he is redirected...
- Modified
- 12 Dec at 12:36
Redirecting root only via .htaccess with other rules in place
Redirecting root only via .htaccess with other rules in place I have an installation of [YOURLS](http://yourls.org/) that redirects generated addresses to a different domain, however the root does not...
- Modified
- 31 Aug at 20:34
htaccess Access-Control-Allow-Origin
htaccess Access-Control-Allow-Origin I'm creating a script that loads externally on other sites. It loads CSS and HTML and works fine on my own servers. However, when I try it on another website it di...
- Modified
- 2 Feb at 09:25
No input file specified
No input file specified I'm running [Anchor CMS](http://anchorcms.com/) and I just upgraded to version 0.8. When I try and run the installer I get a 'No input file specified' error. I believe it's mor...
- Modified
- 12 Oct at 09:43
Server unable to read htaccess file, denying access to be safe
Server unable to read htaccess file, denying access to be safe I have created a simple app using AngularJS. When I tried to host that project in my website [http://demo.gaurabdahal.com/recipefinder](h...
- Modified
- 2 Sep at 13:54
Apache RewriteRule .* index.php [NC,L] Not working
Apache RewriteRule .* index.php [NC,L] Not working I am trying to redirect everything to a single page from my /website/folder/ directory. I added a simple .htaccess with this simple code (I know this...
- Modified
- 20 Jun at 09:12
Https to http redirect using htaccess
Https to http redirect using htaccess I'm trying to redirect [https://www.example.com](https://www.example.com) to [http://www.example.com](http://www.example.com). I tried the following code in the ....
.htaccess Rewrite Rules for subdomain
.htaccess Rewrite Rules for subdomain I use codeigniter as my main install on the main domain. I have created a subdomain and a folder called live e.g. live.domain.com maps to public/live . However in...
- Modified
- 15 Jan at 14:5