Solved

what does this rules in .htaccess means

Posted on 2009-06-27
1
246 Views
Last Modified: 2012-05-07
hi
my manager wants me to tell him what this rules means

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ main.php [QSA,L]
can you please tell me because I'm newbie
please help as soon as possible
best regards
hatem gamal
0
Comment
Question by:hatem_from_mesr
1 Comment
 
LVL 3

Accepted Solution

by:
qualipsoft earned 500 total points
ID: 24727708
Turn on the rewrite engine
    RewriteEngine on

If the file requested is NOT a regular file...
    RewriteCond %{REQUEST_FILENAME} !-f

... then rewrite the URI (part relative to directory where the .htaccess is located or specified in last RewriteBase command) with main.php. QSA keeps any query string part and appends new ones and L specifies this is the last rewrite rule. For example http://host/current/dir/subdir/notafile?lang=en -> http://host/current/dir/main.php?lang=en.
    RewriteRule ^(.*)$ main.php [QSA,L]
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
"In order to have an organized way for empathy mapping, we rely on a psychological model and trying to model it in a simple way, so we will split the board to three section for each persona and a scenario and try to see what those personas would Do,…
The viewer will learn how to dynamically set the form action using jQuery.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question