Mod_rewrite ???

by 8 replies
10
How do I do this?

"If you want support for SEF (Search Engine Friendly) URLs, you'll need mod_rewrite and the ability to
use local .htaccess files."

Thank you in advance for any help that may be offered.
#programming #modrewrite
  • well it is a too broad question, what kind of system are you using? are you using a CMS or a shopping cart for your website? Different system may need to do different things and you need to provide a more specific question in order for me to find a solution for you...
    thanks..
  • Banned
    Are you using FTP?

    If you are using your FTP, look for .htaccess file and change the permission to writable.. or just change it to 777..

    If you are not using FTP you can do the same inside Cpanel..

    let me know then..
  • If you're paying for hosting you should already have mod_rewrite and the ability to use .htaccess files. I don't know of any paid Linux hosts that don't let you edit the .htaccess file and use mod_rewrite.. especially cPanel hosts since half of the scripts you can "one click install" require mod_rewrite for search engine friendly URLs.
  • Banned
    Contact your hosting support if you don't really know what to do... My host support always responds within 2 to 3 hours..
    • [1] reply
    • In a large majority of cases you already have your Mod Rewrite (and .htaccess) enabled and you can start doing some magic ...

      Basically it looks like this - you have a folder with your website on the server and this website has a page "yourwebsite.com/index.php?page=23", but you want to make it look like "yourwebsite.com/affiliate-program". To do this you can simply put a .htaccess file in this very folder and put this in the file:

      <IfModule mod_rewrite.c>
      RewriteEngine On
      RewriteRule ^affiliate-program$ index.php?page=23
      </IfModule>

      From now on, you can find that page at "yourwebsite.com/affiliate-program". But .htaccess (and Mod Rewrite) allows you to do so much more, so try to find some literature about that online and you will be able to go a long way with URL SEO.
      • [ 1 ] Thanks
      • [1] reply
  • Banned
    [DELETED]
  • [DELETED]

Next Topics on Trending Feed