Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 22nd Sep 2009, 08:08 PM   #1
HyperActive Warrior
War Room Member
 
blur's Avatar
 
Join Date: 2009
Posts: 240
Thanks: 47
Thanked 21 Times in 19 Posts
Default
.htaccess rewrite/redirect question (going from xxxx.com to xxxx.com/keyword.html)
Share on: 
fb share twitter share gplus share more share

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


blur is offline  
Unread 23rd Sep 2009, 09:34 AM   #2
HyperActive Warrior
War Room Member
 
jamespitt's Avatar
 
Join Date: 2009
Location: London, England
Posts: 261
Thanks: 28
Thanked 37 Times in 29 Posts
Default
Re: .htaccess rewrite/redirect question (going from xxxx.com to xxxx.com/keyword.html)
Share on: 
fb share twitter share gplus share more share

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/
jamespitt is offline  
Closed Thread


Bookmarks

Tags
htaccess, question, rewrite or redirect, xxxxcom, xxxxcom or keywordhtml


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 11:16 AM.