Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

apache variables in rewrite rule

Status
Not open for further replies.

leocool

Programmer
Jul 22, 2007
1
TR
hello everyone,

there are running 2 different php file as DirectoryIndex in same folder. but the problem is that there is a .htaccess file too in same folder. by the way, i'm using that .htaccess file for writing my rewrite rules.

----------------------------------------------------------
Apache Conf:
localhost , port:4321 , index.php
localhost , port:4322 , other.php
----------------------------------------------------------
Options +FollowSymLinks +ExecCGI

<IfModule mod_rewrite.c>
RewriteEngine On

RewriteCond %{REQUEST_URI} \..+$
RewriteCond %{REQUEST_URI} !\.html$
RewriteRule .* - [L]

RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>
----------------------------------------------------------

It's seem like perfect but it's not. My other DirectoryIndex never run because of that rewriterule. How can i use current DirectoryIndex value, not hardcoded index.php in the rule above?

Thank you for your time.

Umut
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top