Welcome Guest, Not a member yet? Register   Sign In
htaccess exclude sub-directory in the url rewriting.
#10

[eluser]Randy Casburn[/eluser]
[quote author="Yednotek" date="1223426133"]I'm kind of running into a similar problem.
My .htaccess looks like this:

Code:
RewriteEngine on
RewriteCond $1 !^(trans\.php|index\.php|images|forum|cgi-bin|cgi-bin/mail\.cgi|css|links|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]

I need to access the mail.cgi script in my cgi-bin folder, but I keep getting a 404 page not found error. Any suggestions?[/quote]

Yea...you can't use 'paths' in your RewriteCond above. cgi-bin/mail\.cgi isn't going to work. To do that you'll need to use maps.

My best attempt would have you try...
Code:
RewriteEngine on
RewriteCond $1 !^(trans\.php|index\.php|images|forum|cgi-bin|mail\.cgi|css|links|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]


That should fix you up. But like my previous post said. I'm no expert here.

Randy


Messages In This Thread
htaccess exclude sub-directory in the url rewriting. - by El Forum - 07-03-2008, 12:56 PM
htaccess exclude sub-directory in the url rewriting. - by El Forum - 07-03-2008, 02:04 PM
htaccess exclude sub-directory in the url rewriting. - by El Forum - 07-03-2008, 02:50 PM
htaccess exclude sub-directory in the url rewriting. - by El Forum - 07-03-2008, 03:02 PM
htaccess exclude sub-directory in the url rewriting. - by El Forum - 07-03-2008, 11:19 PM
htaccess exclude sub-directory in the url rewriting. - by El Forum - 07-04-2008, 07:57 AM
htaccess exclude sub-directory in the url rewriting. - by El Forum - 07-04-2008, 08:17 AM
htaccess exclude sub-directory in the url rewriting. - by El Forum - 07-04-2008, 08:31 AM
htaccess exclude sub-directory in the url rewriting. - by El Forum - 10-07-2008, 01:35 PM
htaccess exclude sub-directory in the url rewriting. - by El Forum - 10-07-2008, 02:51 PM



Theme © iAndrew 2016 - Forum software by © MyBB