View Single Post
  #4 (permalink)  
Old 10-05-2009, 10:36 AM
wige's Avatar
wige wige is online now
Moderator
WebProWorld Moderator
 
Join Date: Jun 2006
Location: United States
Posts: 2,897
wige RepRank 10wige RepRank 10wige RepRank 10wige RepRank 10wige RepRank 10wige RepRank 10wige RepRank 10wige RepRank 10wige RepRank 10wige RepRank 10wige RepRank 10
Default Re: redirect from folder only to index in parent folder

Oh, Apache and it's query strings... you would probably need to use mod_rewrite then

RewriteEngine on
RewriteCond %{REQUEST_URI} ^/pictures/.*/$ [OR]
RewriteCond %{REQUEST_URI} ^/pictures/.*/index.php$
RewriteRule ^/pictures/([a-z]*)/ /pictures/index.php?fd=$1
__________________
The best way to learn anything, is to question everything.
WigeDev - Freelance web and software development
Reply With Quote