3

Should I create a new .htaccess inside "companies" folder? No. In order to hide the /companies directory from the URL you are going to have to modify the .htaccess file in the parent directory. ie. the WordPress .htaccess file in the document root. There is CSS file and few images inside /companies So I assume you intend to remove /companies from all ...


2

Google Analytics provides a way to add a filename to any page path ending with a slash, in order to standardize data for pages that might be accessible with or without the filename. Look in Admin > View Settings for the Default Page field, right underneath time zone. An index.php in that field is your reason!


2

I think you have two problems: You don't say your bye.php should redirect. Right now you have it specified as a rewrite rather than a redirect. You need to add [L,R] flags to it to get it to redirect. You don't need your slash rules at all anymore. Because you didn't specify "last" with the [L] flag, on your bye.php rule, the slash rules are also taking ...


1

If you are "redirecting" old URLs then you should implement an external redirect, not an internal rewrite, as you have done here. (listing?holidaytype=Villa is unlikely to be a valid filesystem path - but that's possibly another issue.) For example, try the following instead: RewriteCond %{QUERY_STRING} ^proptype=Villa&action=search$ RewriteRule ^index\...


1

https://www.bybe.net/cloudflare-enforce-ssl-redirect-http-https/ has the full details. To redirect to HTTPS, you need add a "Page Rule" for http://*example.com/* with the "Always Use HTTPS" option from the settings. To redirect to www you need three "Page Rules": http://example.com/* -> https://www.example.com/$1 https://example.com/* -> https://www....


Only top voted, non community-wiki answers of a minimum length are eligible