diff --git a/.htaccess b/.htaccess index e2bbc23..fffb651 100644 --- a/.htaccess +++ b/.htaccess @@ -1,18 +1,11 @@ -DirectoryIndex index.php index.html -Options -Indexes -Options -MultiViews - +# BEGIN WordPress + RewriteEngine On - -# 0) Serve existing files/directories as-is -RewriteCond %{REQUEST_FILENAME} -f [OR] -RewriteCond %{REQUEST_FILENAME} -d -RewriteRule ^ - [L] - -# 1) Internal map: /page or /page/ -> /page.php (if such PHP file exists) -RewriteCond %{REQUEST_FILENAME}.php -f -RewriteRule ^(.+?)/?$ $1.php [L] - -# 2) Optional: strip trailing slash for non-directories (keeps .php links working) +RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] +RewriteBase / +RewriteRule ^index\.php$ - [L] +RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d -RewriteRule ^(.+)/$ $1 [R=301,L] +RewriteRule . /index.php [L] + +# END WordPress diff --git a/admin_credentials.txt b/admin_credentials.txt new file mode 100644 index 0000000..9689bd0 --- /dev/null +++ b/admin_credentials.txt @@ -0,0 +1,4 @@ +WordPress Admin Credentials: +URL: http://localhost/wp-admin +Username: admin +Password: qtWbo5uE2epruH8y