• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
apache rewrite lose effectiveness under CI?

#1
[eluser]Unknown[/eluser]
Hi everyone,

I want to rewrite code for codeigniter url rewrite recently,

i used fllow code

Code:
RewriteEngine on
RewriteBase /test
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /test/index.php/$1 [NC,L]
RewriteRule ^list/shows/cid-([0-9]+).html /list/shows?cid=$1 [NC]

'test' is my website dir

It is working well for index.php removal. But it doesn't work for url rewrite.(404 not found)

i want make http://example.com/test/list/shows?cid=1

become

http://example.com/test/list/shows/cid-1.html

Thanks in advance.

so is this a bug or ?

please help me ,tks~~


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


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