• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
.htaccess woes

#2
[eluser]LuckyFella73[/eluser]
hi ryeguy,

I'm no htaccess expert, but in my projects running in
a subfolder, I edit my confic.php this way:
Code:
$config['base_url'] = "http://www.myproject.com/subfolder/";

and don't write the subfolder into htaccess:
Code:
RewriteRule ^(.*)$ /index.php/$1 [L]

instead of:
Code:
RewriteRule ^(.*)$ /subfolder/index.php/$1 [L]

I don't know if that work for you ..
on some webservers url rewriting only works with following htaccess:
Code:
<IfModule mod_rewrite.c>
    # Turn on the Rewrite Engine
    RewriteEngine On
    
    # If the file or directory exists, show it
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^(.+) - [PT,L]
    
    # Blank queries get sent to the index
    RewriteRule ^$ index.php [L]
    
    # All other queries get sent to the index as index.php/whatever
    RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>


Messages In This Thread
.htaccess woes - by El Forum - 12-02-2008, 10:22 AM
.htaccess woes - by El Forum - 12-02-2008, 10:37 AM
.htaccess woes - by El Forum - 12-02-2008, 10:40 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.