PHP Classes

PHP Htaccess File Configuration: Generate Apache configuration to redirect requests

Recommend this page to a friend!
  Info   View files View files (1)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog (1)    
Last Updated Ratings Unique User Downloads Download Rankings
2021-10-10 (1 month ago) RSS 2.0 feedNot enough user ratingsTotal: 226 This week: 3All time: 8,112 This week: 64Up
Version License PHP version Categories
criarhtaccess 1.0.0The PHP License5HTTP, PHP 5, Configuration
Description Author

This package can generate Apache configuration to redirect requests.

It can generate the .htaccess file in the document root directory of the current domain of the site that executes this class.

The .htaccess file defines parameters to configure the Apache Web server to perform several types of requests. Currently, it can:

- Redirect user-friendly URL accesses to a script named index.php

- Redirect all non-SSL requests to the same URL of a site in the SSL version

The class can also remove the .htaccess file from the current domain document root directory.

In Portuguese:

Este pacote pode gerar configuração do Apache para redirecionar solicitações.

Ele pode gerar o arquivo .htaccess no diretório raiz do documento do domínio atual do site que executa esta classe.

O arquivo .htaccess define parâmetros para configurar o servidor Apache Web para realizar vários tipos de solicitações. Atualmente, ele pode:

- Redirecionar acessos de URL amigáveis para um script denominado index.php

- Redirecionar todas as solicitações não SSL para o mesmo URL de um site na versão SSL

A classe também pode remover o arquivo .htaccess do diretório raiz do documento de domínio atual.

Innovation Award
PHP Programming Innovation award nominee
October 2021
Number 3
htaccess files are used with the Apache configuration to set up specific parameters that define how to Web pages to the user browsers.

Many PHP applications developers need to configure the .htaccess file to handle requests to access many types of pages using a single PHP script.

This package can generate a .htaccess file to set up that Apache Web server configuration and redirect requests to the Web server using HTTP to use HTTPS.

Manuel Lemos
Picture of Maic Nogueira
  Performance   Level  
Name: Maic Nogueira <contact>
Classes: 1 package by
Country: Brazil Brazil
Age: 28
All time rank: 4010325 in Brazil Brazil
Week rank: 89 Up4 in Brazil Brazil Up
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Plain text file CriarHtaccess.php Class Classe Criar htaccess

 Version Control Unique User Downloads Download Rankings  
 0%
Total:226
This week:3
All time:8,112
This week:64Up
User Comments (1)
Ai está uma óptima classe, no entanto o .
1 month ago (José Filipe Lopes Santos)
60%StarStarStarStar
 
For more information send a message to info at phpclasses dot org.