URGENT: Problem with ? in url's |
[eluser]Bramme[/eluser]
Okay, I'm in trouble and I need a solution fast. I have just uploaded the new mickm.com website (if anybody knows it), anyhow it's built on CI, everything (sorta) works and I'm pretty proud of it. This site also has a phpbb3 forum that just sits in a subdirectory. Now phpbb3 uses query strings with index.php?blahblah and what not. Now those don't work. I've tried setting enable_query_strings but that didn't work... I'm guessing it has something to do with my htaccess file, which looks like this: Code: Options -Indexes Is there any way to completely exclude the /forum/ directory from the url rewriting? If yes, please provide me with a concrete piece of code. Thanks in advance! This is rather urgent as there's a bunch of people looking at me to correct this mistake. Thanks in advance for helping me out!
[eluser]Ciaro[/eluser]
You forgot the RewriteBase. http://httpd.apache.org/docs/1.3/mod/mod...ewriteBase
[eluser]Bramme[/eluser]
so what should I add and where? okay wait, i'm not that stupid. I think I know where to add it. I'm assuming I need to add a complete server path? Or will a '/' suffice (seeing as it's only the root...)
[eluser]missionsix[/eluser]
Add any subfolders you don't want included onto the RewriteCond line. separate items with a Bar |, escape everything else Code: RewriteEngine on PS I remember MickM. Actually we used to exchange links, but it looks like you've abandoned my link since you switched versions. Links Page
[eluser]Bramme[/eluser]
[quote author="missionsix" date="1218595773"]Add any subfolders you don't want included onto the RewriteCond line. separate items with a Bar |, escape everything else Code: RewriteEngine on PS I remember MickM. Actually we used to exchange links, but it looks like you've abandoned my link since you switched versions. Links Page[/quote] I love you :p changed to Code: Options -Indexes
[eluser]missionsix[/eluser]
awesome! looks like your tutorial images are broken too: http://mickm.com/tutorial/192-keep-the-chains http://mickm.com/tutorial/images/tutorials/chain/1.gif
[eluser]Bramme[/eluser]
Bumping this topic back up. I had to add two more directories with plain old .html files in to this rule "RewriteCond $1 !^(index\.php|forum)", however, when I added them, I still got 404's. Having the uri point to folder/index.html however works. Can I prevent this behavior?
[eluser]fesweb[/eluser]
I have no idea if this will help in your case, but it helped in my particular situation. I had to enable query strings for one unavoidable, non-CI task, but then completely ignore the query string itself. Enable query strings in the config/config.php Code: $config['enable_query_strings'] = TRUE; The usual rewrite stuff, but WITHOUT the Query String Append (QSA) bit in the .htaccess Code: // do this |
Welcome Guest, Not a member yet? Register Sign In |