HTACCESS

Welcome to the portal about HTACCESS.

New Topics

HTACCESS: Forbid all access to website - Block any request

How can I prevent or disallow any external access to my webspace? I do not want to allow any access to my website via a domain or URL and using the...

Question | 1 Answer

HTACCESS: Redirect requests without www to www - example.com to www.example.com

At the moment, my website is accessible via two different ways. A request for http://example.com as well as for http://www.example.com are both...

Question | 1 Answer

HTACCESS: Parts of URL as Parameter - Explode at Slash

I would like to use the parts between the slashes of my URLs as single parameters in PHP. Therefore, I am searching for a fitting .htaccess routine...

Question | 2 Answers

Redirect all HTTP-Requests to HTTPS

I have purchased a SSL certificate for my website. Before, when my page had no SSL encryption, my webpage was accessible via HTTP, for example via a...

Question | 2 Answers

HTACCESS: Cut Slash and And-Character (/&) from URL

How is it possible to remove a slash and a following &-character from a web address? Constantly, I get requests to my website with "/&"...

Question | 1 Answer

Redirect entire Website to other URL

I have changed the folder structure of my website as part of improvements. However, the old links can still be found via the search engines and there...

Question | 1 Answer

New Answers and Comments

Computer Expert: Place a file named .htaccess in the root directory of your site or in the folder you want to protect. This file should only have the following...

Question | HTACCESS: Forbid all access to website - Block any request

Stefan Trost: Just use the following Redirect in your .htaccess file (a file with the name .htaccess in the root folder of your website): RewriteEngine...

Question | HTACCESS: Redirect requests without www to www - example.com to www.example.com

Stefan Trost: Of course, I do not want to withhold the implementation with an HTACCESS-Rewrite. In this case, the Rewrite Rule can look like that, for example:...

Question | HTACCESS: Parts of URL as Parameter - Explode at Slash

Stefan Trost: The easiest way would be to just use the explode-function of PHP. An implementation could look like that: $url =...

Question | HTACCESS: Parts of URL as Parameter - Explode at Slash

NetLabel: Of course the answer is correct. Alternatively, you can also construct this redirection in some other ways. For example, instead of "RewriteCond...

Question | Redirect all HTTP-Requests to HTTPS

Stefan Trost: You can easily create such an HTTP to HTTPS redirection by using HTACCESS. Just insert the following lines directly to the beginning of your...

Question | Redirect all HTTP-Requests to HTTPS

Popular Topics

HTACCESS: Simplify URL

Tutorial | 0 Comments

Show more

Participate

Everyone can participate in Askingbox. Open your topic directly in this category:

 
If you should have any questions: That’s how it’s done.