“htaccess” Réponses codées

htaccess

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
Perfect Penguin

.htaccess


# BEGIN WordPress

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress
Mr. Codex

htaccess

//In your Root directory create a file .htaccess and write it

RewriteEngine on
RewriteCond %{REQUEST_URI} !^public
RewriteRule ^(.*)$ public/$1 [L]
Tame Tapir

.htaccess

#Before: https://example.com/index.php?user=robert

RewriteEngine On
RewriteRule ^user/([^/]+)?$ index.php?user=$1 [L,QSA]
    
#After: https://example.com/user/robert?query=value

#You can also use other query too.

#Like: robert?query=value&query2=value2&query3=value3
Mr. Codex

Réponses similaires à “htaccess”

Questions similaires à “htaccess”

Parcourir les réponses de code populaires par langue

Parcourir d'autres langages de code