htaccess

  1. Maxoq

    Subdomain redirection in htaccess?

    What codes in htaccess file to use to redirect type of thee URL https://subfolder.example.com ---> https://example.com/subfolder/ https://subfolder.example.com/subfolder/ ---> https://example.com/subfolder/ https://subfolder.example.com/subfolder/my-wordpress-post-title/ --->...
  2. Dr. McKay

    Redirect all pages to homepage htaccess?

    We are planning to move a domain to a new hosting and also changing its cms from a custom cms to Wordpress cms thus the structure of urls will be change. I have two options are: Using htaccess 301 redirect old url to new url. Using htaccess to redirect all pages to homepage Which one is...
  3. David Beroff

    Enabling htaccess in Plesk for all websites?

    I heard that Nginx doesn't support htaccess file while 80% my websites are running with htaccess. My hosting provider is offering Plesk with cheap pricing, around $4 for a licence, I would take one but if I install Plesk on my host, how can I enable htaccess for all my sites? Where can I...
  4. Moebuntu

    How to enable ssl and running htaccess in plesk onyx?

    I have only installed Plesk onyx on my VPS but not tried to check any real sites with it. I heard that Plesk running with Nginx and it doesn't allow to run .htaccess file. How can I solve this? another question is how to enable SSL from Plesk control panel if I used ssl service from cloudflare...
  5. Paul Wellner Bou

    htaccess redirect all pages to homepage?

    can any one share me htaccess codes to redirect all pages to homepage, on the old domain names I didn't use it any more but I have got a new domain, but pages on old domain names were indexed by Google, I want to redirected all its pages to homepage or to new domain name. How can I do that?
  6. HostBastic

    Forcing SSL with .htaccess, cPanel & CloudFlare

    Using the following code in your .htaccess file automatically redirects visitors to the HTTPS version of your site: RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] If you have an existing .htaccess file: - Do not duplicate...
  7. Maxoq

    Force www or non-www in htaccess?

    Many my friends at some point asked me ways to force either the www or non-www version of their site to display in their visitor's browser. For example we always use www.example.com or simply example.com display in our web browsers. There is a common thought that forcing one format is better for...
  8. Marc0

    How to use htaccess to protect your config files

    To stop anyone exploit/view your config files from your service by some tools, we can use .htaccess to protect our files by using code: # to protect config_file.php <Files config_file.php> order allow,deny deny from all </Files> # to protect wordpress config file <Files wp-config.php>...
Top