.htaccess rewrite/redirect question (going from xxxx.com to xxxx.com/keyword.html)

by blur
1 replies
Hello -

I am trying to get my keyword in my url. Could I rewrite the website.com to website.com/keyword.html to get my keyword in it? It's basically a forum site so renaming the index.php wouldn't be a great idea.

Thanks
#htaccess #question #rewrite or redirect #xxxxcom #xxxxcom or keywordhtml
  • Profile picture of the author jamespitt
    That's pretty easy to do in a .htaccess file - look at httpd.apache.org/docs/1.3/mod/mod_rewrite.html (Apache module mod_rewrite ) although it always hurts my head to look at that file.

    OR - You could just move everything to a new keyword/ subdirectory which will work very well & all internal links will be right without you having to worry too much about things. This is what I've done in the past. You then just need a simple redirect from the / directory to keyword/
    Signature

    Get your totally free outsourcing guide here..

    Send me a PM if you want to hire top-calibre outsourced staff.

    {{ DiscussionBoard.errors[1210420].message }}

Trending Topics