I have a website gofastparking i am trying to rewrite url but it does not work below is the htaccess code.
# .htaccess main domain to subfolder redirect
RewriteEngine on
#RewriteCond %{HTTP_HOST} ^(www.)?gofastparking.com$
RewriteCond %{REQUEST_URI} !^/gofastparking/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /gofastparking/$1
RewriteRule ^(/)?$ gofastparking/index.php [L]
RewriteRule airport-parking-heathrow$ car-parking-heathrow.php [NC]
# CASE SENSITIVE METHOD
<Files .htaccess>
Order allow,deny
Deny from all
</Files>
# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php74” package as the default “PHP” programming language.
<IfModule mime_module>
AddHandler application/x-httpd-ea-php74 .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
before rewriting:
https://www.gofastparking.com/car-parking-heathrow
here is the url that should work but it give 404.
after url rewriting:
https://www.gofastparking.com/airport-parking-heathrow
any help would be appreciated.