New answers tagged

1

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

You basically just need to remove the /de/.htaccess file altogether!*1 Your root .htaccess already performs the necessary redirects. (*1 Or remove all the directives and keep the ErrorDocument directive if you need a separate language-specific 404 file. But see the note below regarding the format of the ErrorDocument directive.) The RewriteRule ^index\....


0

Using mod_alias: Redirect permanent /webpage https://example.com/webpage.txt or if you are using a recent version of Apache, you can redirect to relative URLs: Redirect permanent /webpage /webpage.txt You can also implement this with mod_rewrite: RewriteEngine On RewriteRule "^/?webpage$" "/webpage.txt" [R=301,L]


0

Masking is horrible and nobody should ever use it. It doesn't work for SEO. Search engines see right through it and index the hidden URL rather than the domain with masking. Users can choose to use either the masked URL, or the real URL. There is nothing that forces users to use the masked URL. It isn't good user experience if users try to use the masked ...


0

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....


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

I believe this can be done by changing IP of another.example to example.com and adding some codes in the .htaccess file. You certainly should not be "changing the IP" of any domain. (What was your reasoning behind this?) This sounds like a relatively simply redirect that can be performed in the .htaccess file. A condition is required that checks for the ...


0

If you redirect from CloudFlare, then you can create a page rule there and put your redirect site. It will help to increase your site speed. Otherwise you can use wprocket you can see the tutorial in youtube how to avoid this redirect and you also remove these chain redirects by using semrush.


2

You can use a DNS A record to point the domain to the IP address of your Linux instance. Assuming that the instance is running Apache, you would then create a virtual host that does this redirect: <VirtualHost *:*> ServerName example.com RedirectMatch ".*" "https://www.lokki.newdomain.example/resources/index.html?crsource=google&category=...


-2

Cloudflare Webworkers or Nginx reverse proxy redirection could be worth a shot.


1

In 1and1 ionos FTP root folder, by default there's an index.html file which is causing the trouble and contains the troublesome "defaultsite" code snippet. If you install wordpress in the root directory, this file is served INSTEAD of the necessary wordpress index.php file. So, the solution is to rename the troublesome file to BACKUP_index.html (or delete ...


1

To externally redirect the request from /product-configurator (I assume the missing u was a typo?) to /bikes-configurator when the HTTP Referer contains bikes=1 in the query string part of the URL then you could do something like the following using mod_rewrite near the top of your .htaccess in the document root: RewriteEngine On RewriteCond %{HTTP_REFERER}...


Top 50 recent answers are included