Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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 (web.com/sec_pres/) displayed the first presentation without a CSS and images... Could anyone help me the right way of set up?

Thanks

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

1 Answer 1

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
add comment

Your Answer

 
discard

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.