Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have these structure on my FTP:

  • one presentation (without .htaccess)
    • second presentation (with .htaccess) - named "sec_pres"
    • third pres. (with .htaccess) - named - "third_pres"

How I should set to .htaccess in second presentation for the right run? This is my set up of .htaccess on localhost and works me pretty well:

RewriteEngine On

RewriteRule ^/(images|css)/(.*)$ /$1/$2 [L]
RewriteRule ^/robots.txt$ - [L]
RewriteRule ^/favicon.ico$ - [L]
RewriteRule ^(.*)$ /index.php?gotcha=$1 [L,QSA] 

I tried to to edit htaccess for the second presentation:

RewriteEngine On

RewriteRule ^/sec_pres/(images|css)/(.*)$ /$1/$2 [L]
RewriteRule ^/sec_pres/robots.txt$ - [L]
RewriteRule ^/sec_pres/favicon.ico$ - [L]
RewriteRule ^(.*)$ /index.php?gotcha=$1 [L,QSA] 

But with the set up above I got in the browser ( displayed the first presentation without a CSS and images... Could anyone help me the right way of set up?


share|improve this question
Where's the first presentation located? – Shane Madden Feb 8 '12 at 16:48

I'm not even close to an expert on this subject, but i'll give it a try

RewriteRule ^(.*)$ /index.php?gotcha=$1 [L,QSA]

Shouldnt you use $2?

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.