diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index aad2e61..c5bed96 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,9 +17,9 @@ jobs: id: set-destination run: | if [[ "${{ github.ref }}" == "refs/heads/main" ]]; then - echo "DESTINATION=/var/www/lantaeu/DTCH/" >> $GITHUB_ENV + echo "DESTINATION=/var/www/dtch/" >> $GITHUB_ENV else - echo "DESTINATION=/var/www/lantaeu/DTCH_DEV/" >> $GITHUB_ENV + echo "DESTINATION=/var/www/dtch_dev/" >> $GITHUB_ENV fi - name: Sync Files from ${{ github.ref }} @@ -29,7 +29,7 @@ jobs: remote-user: stats private-ssh-key: ${{ secrets.SSH_KEY }} destination-path: ${{ env.DESTINATION }} - rsync-options: --no-times -r --exclude=.git* --exclude=*.json --exclude=.git/ --exclude=.github/ --exclude=config.php + rsync-options: --no-times -r -v --exclude=.git* --exclude=*.json --exclude=.git/ --exclude=.github/ --exclude=config.php - name: LINK TO WEBSITE run: | if [[ "${{ github.ref }}" == "refs/heads/main" ]]; then diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..fd2af8f --- /dev/null +++ b/.htaccess @@ -0,0 +1,8 @@ +RewriteEngine On + +# Check if not an existing directory +RewriteCond %{REQUEST_FILENAME} !-d +# Check if appending .php points to an existing file +RewriteCond %{REQUEST_FILENAME}\.php -f +# Rewrite the neat URL to its .php counterpart +RewriteRule ^(.*)$ $1.php [L] \ No newline at end of file diff --git a/includes/navigation.php b/includes/navigation.php index 4211a9e..6251e40 100644 --- a/includes/navigation.php +++ b/includes/navigation.php @@ -1,3 +1,12 @@ +"; + echo 'For prod DTCH PRODUCTION'; +} +?> +