My pages (index.php and view-contract.php) were in the root directory before, but then I moved these pages to the "account" folder. Before the pages were moved my RewriteRule
was working but now it's not. I tried some of the subfolders redirection rules but they didn't work.
Thanks in advance.
URL in account/index.php
<a href="view-contract/'.$row['contractSlug'].'">'.$row['contractName'].'</a>
.htaccess
Options -Indexes -MultiViews
RewriteEngine On
RewriteBase /dashboard/
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteRule ^view-contract/([\w-]+)/?$ view-contract.php?contractID=$1 [QSA,L,NC]