Make URLs SEO friendly and redirect old URLs |
Hi
I am new to codeignitor, I want to make the URL's SEO friendly, and for this I want make changes in url. for example my page is domain.com/aboutus I want to change it to domain.com/about-us for this I have added the following code in routes.php $route['about-us'] = "About/index"; I also want to redirect my old url (domain.com/aboutus) to new url ( domain.com/about-us ) . for automatic redirection, I have added the following code in .htaccess file Redirect "/aboutus" "/about-us" this code is redirecting the old link, but It's added extra content in url (about-us?id=aboutus ) Please guide me how can I remove the extra content (?id=aboutus) from URL and why is it adding. Thanks in advance.
How to make “truly” SEO friendly URLs in CodeIgniter (without “duplicate content” on underscore URLs)
How to Generate SEO Friendly URL in CodeIgniter What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
|
Welcome Guest, Not a member yet? Register Sign In |