webdevRefinery Forum: htaccess Help - webdevRefinery Forum

Jump to content

Think a topic deserves its own subforum?

Any topic that gets popular here will have a subforum made for it, as long as there are folks around who can answer questions! So if you think wdR is missing something, just talk about it here :)
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Rate Topic: -----

User is offline NeilHanlon 

  • Group: Members
  • Posts: 884
  • Joined: 08-July 10
  • LocationRowley, Massachusetts
  • Expertise:HTML,CSS,PHP,Java,Graphics

Posted 08 April 2012 - 09:44 AM (#1)

htaccess Help


Hey, so I just recently moved a website I was working on for a client into production, working in the root directory of public_html/ on his account. I have the following htaccess rewrite to remove the index.php? from the URL.. However, I have a webapp hosted in a subdirectory of public_html, in public_html/tickets

Regardless of my adding tickets to the list of exclusions, and that it shouldn't rewrite because it's a directory... it's giving me a 404.

If I take it off, and access the app, I can then access it... But if the rewrites are there and my cache is clear - I can't access the webapp. The tickets folder is password protected via it's own htaccess.


RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index\.php?|sitemap.xml|robots\.txt|assets|tickets)
RewriteRule ^(.*)$ index\.php?/$1 [L]



Any ideas? I suppose I could create my own authentication for the app if that's the problem - but I'd like to avoid it if possible. The app is so simple that I really don't want to involve that much session management. (I'm using sessions to store a limited amount of data, and I'd have to rewrite parts of the app if I added PHP-side authentication).

I'm using CodeIgniter for both projects, if it matters.
Thanks,
兄ニール

Website | Blog | @NeilHanlon | About.Me | Facebook | LinkedIn
0


Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Enter your sign in name and password


Sign in options
  Or sign in with these services