0

I have changed my normal™ php website to CodeIgniter framework. My issue is

I need to:

redirect http://samajam.org/contact_us.php to http://samajam.org/contact

Tpojka
  • 6,996
  • 2
  • 29
  • 39
secondsight
  • 115
  • 1
  • 10

2 Answers2

2

You can set 301 redirection in your .htaccess file like -

Redirect 301 http://samajam.org/contact_us.php http://samajam.org/contact

OR you can use CodeIgniter URL Helper for redirection

1

Try

Redirect 301 /contact_us.php http://samajam.org/contact

Enjoy, i hope i helped you :)

versvs
  • 643
  • 2
  • 12
  • 30
  • thanks its working but now the url is like `http://samajam.org/contact?/contact_us.php` i just need `samajam.org/contact` is it possible – secondsight Mar 27 '18 at 06:36
  • try adding the whole qualified name of the domain in the first parameter ( `http://samajam.org/contact_us.php` ), but I dont have an Apache at hand to try it now. (I'm at work and here we use different technology, sorry!) – versvs Mar 27 '18 at 06:42