Quantcast
Channel: .htaccess – Hivelocity Hosting
Browsing all 11 articles
Browse latest View live

DirectoryIndex

DirectoryIndex index.php Entering the above line in .htaccess file in the document root of the domain. The above line makes to fetch index.php first instead of the index.html The post DirectoryIndex...

View Article



Enable php code to work inside a .html / .htm file.

To get this to work you need to edit your httpd.conf file. Find the line that looks similar to this: AddType application/x-httpd-php .php and change it to look like this: AddType...

View Article

PHP Parsing code

If php parsing is not working please put the following code in .htaccess file of the domain in question. Options +Includes AddType text/html .html AddHandler server-parsed .html   The post PHP Parsing...

View Article

DirectoryIndex

DirectoryIndex index.php Entering the above line in .htaccess file in the document root of the domain. The above line makes to fetch index.php first instead of the index.html The post DirectoryIndex...

View Article

How do I display files of a directory in a browser?

If you want to list all files in a directory that doesn’t use an index.html (or index.php) file, you can create an .htaccess file with the following contents: Options +Indexes This will tell apache...

View Article


How do I prevent people from linking to my images?

Create an .htaccess file in your public_html directory with the following code: RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^https://(www.)?domain.com.*$ [NC]...

View Article

Set register_globals through .htaccess

Issue: How to set register_globals through .htaccess The most common setting that clients want to change are the “register_globals” settings. If you want to enable register_globals, you will need to...

View Article

Turning off register globals through .htaccess file

Turning off  register globals through .htaccess file You have in my .htaccess file the line: If you want the register globals off for your OS Commerce or zen cart installation then place the .htaccess...

View Article


How do I prevent people from linking to my images?

Create an .htaccess file in your public_html directory with the following code: RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^https://(www.)?domain.com.*$ [NC]...

View Article


How do I display files of a directory in a browser?

If you want to list all files in a directory that doesn’t use an index.html (or index.php) file, you can create an .htaccess file with the following contents: Options +Indexes This will tell apache...

View Article

redirect using .htaccess

1) Temporary Redirect : Redirect temp / https://www.test.com This will redirect https://test.com — to — https://www.test.com Redirect temp /folder https://www.test.com/folder This will redirect...

View Article
Browsing all 11 articles
Browse latest View live




Latest Images