skip to Main Content

I’m relatively new to htaccess files and I’m trying to get my URL to look SEO friendly.

It says to change my htaccess.txt to .htaccess to allow URL overwrite but I have multiple htaccess files and don’t know which to switch and what to do.

My goal is to get from:
http://www.sunshineorlandorentals.com/component/bookman/?PropertyId=1609

to:
http://www.sunshineorlandorentals.com/location/1609

2

Answers


  1. Don’t be confused about the multiple .htaccess files. The only file which is working is without any extension that means .htaccess is the right file. You can delete other .htaccess.txt files. Download them before Delete as Backup.

    To redirect your current url to new one — Simply ADD below line of code into your .htaccess file.

    Redirect 301 /pagename.php http://www.example.com/pagename.html
    

    Here pagename.php is your old url without Domain name
    and pagename.html is new url with same Domain name, Replace example.com with yours one.

    And your new Url http://www.sunshineorlandorentals.com/location/1609 is completely Seo friendly. Try to make all your urls like same in future.

    Thanks

    Login or Signup to reply.
  2. Just ignore all other files.
    You just need to enable sef urls and sef rewrites on Joomla sites (in joomla config setting).

    Create new hidden menu with alias ‘location’ pointing to your component that’s it.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search