Tags » Htaccess

htaccess redirect index.php/index.html to root + Force www

Force non www to www domain without adding domain name

—————-CODE Start——————-

RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1

—————-ENDOFCODE——————-

Redirect http://www.mysite.com/index.html to… 57 more words

Apache Server

Set Up WordPress with Optimal .htaccess Settings

If you are a WordPress user then you probably have met the .htaccess file. The .htaccess file allows you to make configuration changes on a per-directory basis and it is very useful in case you want to enable/disable additional functionality and features for your site. 60 more words

How to remove index.php from url in CodeIgniter

Yes, you can remove the index.php from your url in your CodeIgniter web application.

You just need to add a .htaccess file in your web application folder. 82 more words

PHP

Redirect to www with https in htaccess

RewriteEngine On

RewriteCond %{HTTP_HOST} !^www\. 
RewriteRule ^(.*) https://www.%{SERVER_NAME}%{REQUEST_URI} 

RewriteCond %{HTTPS} off
RewriteRule ^(.*) https://%{SERVER_NAME}%{REQUEST_URI} 
Web

Converting .htaccess rewrite rules to IIS

  1. Make sure the URL Rewrite module is installed and enabled for IIS. Right click on Sites, and make sure there is an icon with URL Rewrite label is listed in the IIS section.
  2. 99 more words

CodeIgniter3 .htaccess removing index.php subdomain

Below is the general documentation for editing the .htaccess file to remove index.php from a url

The documentation examples is

example.com/index.php/news/article/my_article
will be the same as
example.com/news/article/my_article

… 170 more words
Coding

Fixing missing Authorization Headers

It’s something to do with using PHP FPM / Fast CGI, and auth headers being disable for that.

So we add this to the directory entry of the .htaccess: 11 more words

Php