I am trying to apply some rewrite rules in htaccess file... in the local host is working fine, on other hosting working fine but when I upload the htaccess file to GoDaddy is not working. I have read everything in stack overflow. I have called GoDaddy Support 4 times and read everything relevant in the GoDaddy community (literally) but still can not solve it. After some random changes I finally manage the first line to work, but the others still not working(returns a 404). (In one of the random changes I used the absolute path given from the hosting menu, save and was not working, then I removed saved is and the line was working). I paste below my htaccess file, any help would be really appreciated
RewriteEngine On RewriteRule ^/?customize/?$ all_poi.php RewriteRule ^/?santorini/?$ santorini.php RewriteRule ^/?aboutus/?$ aboutus.php RewriteRule ^/?tours/?$ all_tours.php RewriteRule ^/?tours/([0-9]+) tours.php?tour_id=$1& [L] # Redirects to https RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteCond %{HTTP_HOST} ^(www\.)?santoriniguidedtours\.com RewriteRule ^(.*)$ https://www.santoriniguidedtours.com/$1 [R=301,L] #remove trailing slash RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)/$ /$1 [L,R=301] # <- for test, for prod use [L,R=301] # Removes index.php from ExpressionEngine URLs RewriteEngine On RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC] RewriteCond %{REQUEST_URI} !/system/.* [NC] RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,NE,L]