|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
sadosa Smarty n00b
Joined: 25 Jul 2015 Posts: 1
|
Posted: Sat Jul 25, 2015 10:28 pm Post subject: Smarty Redirect Anyone can help me? |
|
|
Hello friends, I have a problem.It's using the system in use smarty. I'm using my site to another domain from google to figure all I need to redirect pages.
example
www.example1.com/categorty/subcategory address when clicked google
You have to go to www.example2.com/category/subcategory address.
When done with .htaccess, google understands that. It is starting to look and search for new sites.
Can I make the smarty code as a 301 redirect.
I would appreciate if you can help. |
|
Back to top |
|
saitho Smarty n00b
Joined: 27 Jul 2015 Posts: 2
|
Posted: Mon Jul 27, 2015 8:12 am Post subject: |
|
|
Why don't you simply use .htaccess as it worked before? If it has to be done with PHP you might want to use
Code: | header("Location: http://www.example2.com/category/subcategory", true, 301); |
|
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|