user1847437
user1847437

Reputation: 213

How to temporary redirect given pages in codeigniter using htaccess

I would redirect with htaccess all codeigniter pages with following url to a coming soon page

*.domain.ext/customer/any_page

to /customer/comingsoon

any tips?

Upvotes: 0

Views: 202

Answers (1)

Muslim
Muslim

Reputation: 66

Why not use the routing facility in CodeIgniter?

$route['default_controller'] = 'customer/comingsoon';

or

$route['(:any)'] = 'customer/comingsoon';

Try this :

RewriteEngine on
RewriteCond %{REQUEST_URI} /(.*)
RewriteRule /(.*) http://domain.ext/customer/coomingsoon

Upvotes: 1

Related Questions