Welcome Guest, Not a member yet? Register   Sign In
.htaccess "segment/query style" to "query only style" mapping problem

Good morning folks,

hope all are well.

Justed started two days ago with codeigniter and I like it a lot so far. But at the moment I run into a problem which drives me nuts, hopefully some of you can help with that.

I want to pass an URL to my controller. I red several topics about that in this forum and decided to try to solve this by using query strings.

My incoming http requests looks like


So what I do in my .htaccess file is the following

RewriteRule ^related.phtml(.*) related$1
RewriteCond $1 ^related
RewriteRule ^related(.*) index.php=c=related$1 [L]

(The first line to get rid of the optional .phtml - I am sure that can be handled more clever))

That works so far but if I call


without page query parameter I get an 404 Page not found error.

Would be great if someone can give me an hint what goes wrong here or can give me some advice how to handle the URL in URI issue more clever.

Thanks in advance


Messages In This Thread
.htaccess "segment/query style" to "query only style" mapping problem - by El Forum - 10-17-2008, 12:15 AM

Theme © iAndrew 2016 - Forum software by © MyBB