You are here: Htaccess problem « PHP Programming Language « IT news, forums, messages
Htaccess problem

Posted by frizzle on 05/27/06 18:51

Hi group,

I have the htaccess code that is below to redirect everything to
index.php exept for the mentioned folders. (img, swf, js and css)
Now when i try to access domain.com/testfolder/img
in Firefox i get redirected to domain.com/testfolder/img/?img
How can i prevent this?

And i was wondering if i could 'tell' the htaccess to use the folder
it's in as root automatically.
And somehow my values don't get passed to index.php. That doesn't make
sense to me either ...

# S T A R T H T A C C E S S # # # # # # # # # # # # # # # #

RewriteEngine On

RewriteBase /testfolder/
RewriteRule ^((img|swf|js|css)(/.*)?){1}?$ - [PT]
RewriteRule ^(.*)$ index\.php?$1 [L]

# E N D H T A C C E S S # # # # # # # # # # # # # # # # # #

Frizzle.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация