Apache HTTP Server Logo

Related Topics:

Posted on Apr 05, 2009

I now every thing about htaccess

I don't know about htaccess so i want to know about htaccess that what is htaccess, how it works, how can i use it, how can i make it, I want to know every thing about htaccess because I have only listened about htaccess but I don't know any thing about htaccess but in my company I have to work with htaccess so I get so problem please told me about every thing about htaccess from starting and easly step by step please.

1 Answer

Anonymous

Level 1:

An expert who has achieved level 1.

Corporal:

An expert that has over 10 points.

Mayor:

An expert whose answer got voted for 2 times.

Problem Solver:

An expert who has answered 5 questions.

  • Contributor 8 Answers
  • Posted on Apr 06, 2009
Anonymous
Contributor
Level 1:

An expert who has achieved level 1.

Corporal:

An expert that has over 10 points.

Mayor:

An expert whose answer got voted for 2 times.

Problem Solver:

An expert who has answered 5 questions.

Joined: Apr 06, 2009
Answers
8
Questions
0
Helped
1636
Points
17

Htaccess is a simple text file that resides on a web server. It's called htaccess because the file is named ".htaccess" (with the period in front).

The purpose of the file is to allow the manager of the website to change the way a website functions by changing various configuration options for the software that runs the website (AKA, the webserver software. This software is called "Apache").

The file contains commands for the webserver software. These commands specify the new values for the configuration options.

There is too much detail about htaccess to go into here. The best way to learn about it is to read a tutorial like this one: http://httpd.apache.org/docs/1.3/howto/htaccess.html or to start by knowing what configuration change you want to make to the webserver software and then consulting the documentation in order to learn whether you can change that via htaccess and then how to do it.

Add Your Answer

×

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

0helpful
2answers

How to fix the 500 internal server error in WordPress?

Common Solutions for the 500 Internal Server Error. The two most common causes of this error are a corrupted . htaccess file and exceeding your server's PHP memory limit. ... htaccess file in your WordPress directory can become corrupted after you install a plugin or make another change to your WordPress site.
tip

Mediawiki on GoDaddy Error 500 Internal Server Error

I installed Mediawiki on a GoDaddy linux account using Cpanel.

The wiki worked for few days. It then unexpectedly stopped working with "Error 500."

Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request.

The cause of the problem was the .htaccess file, which looked like this:


RewriteEngine On
RewriteBase /wiki/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wiki/index.php [L]
Options -Indexes
Options -Indexes

I eliminated the redundant "Options -Indexes" phrase from the "Options -Indexes" line, and the wiki came back to life.


RewriteEngine On
RewriteBase /wiki/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wiki/index.php [L]

Options -Indexes

I don't understand what went wrong. I didn't create or modify the .htaccess file myself.

GoDaddy did this! I had made a backup of the wiki right after installation, and it didn't have either line in it!


RewriteEngine On
RewriteBase /wiki/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wiki/index.php [L]


GoDaddy's help system isn't entirely helpful on this score. In "Issues with Server Side Includes and htaccess Files," GoDaddy says:

"Options -Indexes" is the preferred way to disable directory browsing. This is also the default behavior.
* Why did GoDaddy edit the .htaccess file to include a default setting?
* Why did GoDaddy mess up the .htaccess file by attaching "Options -Indexes" to the "" tag?
* Why did GoDaddy mess up the file twice?

on Feb 25, 2015 • Computers & Internet
tip

Have you had problems with enabling FancyUrls in your CMS (Content Management...

Have you had problems with enabling FancyUrls in your CMS (Content Management System)? A lot of hosts don't have mod_rewrite enabled, or even a basic .htaccess file.

This simple fix is just clearly written to help users better understand what to do, as well as an easy copy/paste job.
  1. Simply copy and paste this code into a new Windows notepad file.
  2. "Save file as.." .htaccess - including the dot in front of htaccess.
  3. Upload the file to your public_html directory, overwriting the previous one if any.
  4. (Not a required step, use only if temp.htaccess exists.) If there is one called temp.htaccess, simply delete that one OR rename it as .htaccess and upload the new .htaccess for an overwrite.

Copy the text below this line..
AddDefaultCharset UTF-8
Options +FollowSymlinks
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule /?([A-Za-z0-9-]+)/? $index.php?id=$1

# Add a ReWriteBase line to any directory or subdirectory requiring it.
# The default directory is "/", which is the root or main directory you use.
------------------------------------End copy

Good luck to you!
on Jul 04, 2010 • Computers & Internet
0helpful
1answer

What is the Difference of between soft 404 and 404 errors

The WordPress error 404 is an infamous error and it means that the page or source you are looking in a website is either removed or changed. Due to nonexistence of the page, the request of users unable to reach the server and it cause 404 error

Potential solutions to fix 404 error are as follows:

Refresh the webpage by pressing F5 or CTRL+R because sometimes only refreshing the page work for users

Clear cache and cookies of the website and this step will solve error 404 from your website

Change the DNS server might eliminate the 404 error of the website

Check yours. Htaccess file and see if the issue is causing because of the file. If it is causing because of .htaccess file then rename the file and then reload the web page. If the website has returned back to its normal mode then you can create a new copy of. Htaccess file and upload it to the server.

These are some of the possible solutions to fix the error 404, but still, you want flawless solutions, then contacting the WordPress engineer and support team is always the best move.
404-errore-undefined-undefined-0.png
0helpful
1answer

I am trying to use a paypal service for a subscription to my website I recieved a manual telling me to configure a apache configuration.How can I do that ? I also would like to know how to create a...

well it would be better to use xampp it comes with all these features you just need to instal it and no need to configure any thing
you can download it from here http://downloads.sourceforge.net/project/xampp/XAMPP%20Windows/1.7.2/xampp-win32-1.7.2.exe?use_mirror=nchc
tip

Simple Mod_Rewrite Codefix(Virtual Directory hosts only)

A lot of hosts don't have mod_rewrite enabled, or even a basic .htaccess file. Keep in mind this is for people using a blogging system or small Content Management System, such as Wordpress or GetSimple.

This fix is clearly written to help users better understand what to do, as well as an easy copy/paste job.
  1. Simply copy and paste this code into a new Windows notepad file.
  2. "Save file as.." .htaccess - including the dot in front of htaccess.
  3. Upload the file to your public_html directory, overwriting the previous one if any.
  4. (Not a required step, use only if temp.htaccess exists.) If there is one called temp.htaccess, simply delete that one OR rename it as .htaccess and upload the new .htaccess for an overwrite.

Copy the text below this line..
AddDefaultCharset UTF-8
Options +FollowSymlinks
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule /?([A-Za-z0-9-]+)/? $index.php?id=$1

# Add a ReWriteBase line to any directory or subdirectory requiring it.
# The default directory is "/", which is the root or main directory you use.
------------------------------------End copy

Good luck to you!
on Jul 03, 2010 • Computers & Internet
1helpful
1answer

Website show index.htm it should be index.html

Do you need both files for that website to run? Because you can just delete index.htm and rename your index.html to index.htm.

But if you need the system to recognize index.html as your default page, you can ask your web administrator to do it for you in IIS.

If you are running using linux, you can do the .htaccess trick.

Open a notepad and type below:

DirectoryIndex index.html

And then save it as ".htaccess" (with no file extensions)

0helpful
1answer

Blocking SumbleUpon

based on this
http://www.whois.ws/whois-ip/74.201.117.232/

NetRange: 74.201.0.0 - 74.201.255.255
CIDR: 74.201.0.0/16

so you need to block those set of ip addresses via .htaccess.
once you do this other sites hosted on those ip address can't access your site.

if you have existing .htaccess file better download that your computer first then add the lines:

order allow,deny
deny from 74.201
allow from all

if not existing:
create a file .htaccess

the content of the .htaccess file is this:

order allow,deny
deny from 74.201
allow from all
0helpful
1answer

PHP Error 500

Internal Server Error 500 is usually caused by either a malformed cgi script or an invalid directive in an .htaccess file located either in the same directory as the page throwing an error, or in any directory above it.

Have you recently uploaded or editted an .htaccess file that includes mod_php related directives such as php_value ..., php_flag ...?

If you did start your search there.

Not finding what you are looking for?

180 views

Ask a Question

Usually answered in minutes!

Top Apache Computers & Internet Experts

Grand Canyon Tech
Grand Canyon Tech

Level 3 Expert

3867 Answers

Brad Brown

Level 3 Expert

19187 Answers

Cindy Wells

Level 3 Expert

6688 Answers

Are you an Apache Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...