0

I would use CodeIgniter in my new project, but i only use the helper function, so Can i run my php script as CodeIgniter restful Url function but not in MVC?

or i can done by Apache rewrite mod instead?

1 Answer 1

1

Apache rewrites would be more suitable if you don't have a need to use CodeIgniter.

In your .htaccess file you'd use something like:

RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ index.php?page=$1 [PT]

Then you can use http://yoursite.com/whatever and $_GET['page'] will equal whatever.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.