.htaccess - Codeigniter site replicated in subdirectory not displaying individual pages -


we have copied codeigniter website (from our root domain) subdirectory on same root domain (with config.php changes made , new database etc.). however, page links don't display individual pages yet browser reloads index.php page content (as if it's loading new page) , changes url in browser window correct page.

this odd , i've spent hours pouring on it, i'm hoping here may able give me starting search point.

for information, .htaccess in subdirectory is:

rewriteengine on
rewriterule ^test.php$ mod_rewrite.php
rewritecond $1 !^(index\.php|resources|robots\.txt)
rewritecond %{request_filename} !-f
rewritecond %{request_filename} !-d
rewriterule ^(.*)$ index.php/$1 [l,qsa]

if theres new codeigniter install in subdirectory used on root, need include name of sub directory in front of index.php parts of htaccess

something this(the change on last line):

rewriteengine on  rewriterule ^$ /dev/index.php [l] rewritecond $1 !^(index\.php|images|css|js|robots\.txt|favicon\.ico|zip\.php|resources) rewriterule ^(.*)$ /dev/index.php?/$1 [l] 

dev should changed name of subdirectory. also, if neither or these works , have htaccess on root, effecting subdirectory.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -