SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Nov 2008
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to make .htaacess for this site??

    Please can somebody help me to make .htaacess ? Site is in my signature. Thanx!

  2. #2
    Theoretical Physics Student bronze trophy Jake Arkinstall's Avatar
    Join Date
    May 2006
    Location
    Lancaster University, UK
    Posts
    7,062
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Ok, first of all, do you know what a .htaccess file does? If not, google it.

    If so, do you know what you want to do with it (as you haven't stated in your post)?

    Do you know how to implement it? I'm assuming not.

    It's a very vague question, I'm afraid, you'll have to be more specific.
    Jake Arkinstall
    "Sometimes you don't need to reinvent the wheel;
    Sometimes its enough to make that wheel more rounded"-Molona

  3. #3
    SitePoint Member
    Join Date
    Nov 2008
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok, I want make this site more SEO frendly, somebody give me this code, but it didn't work, so please help. Here is the code:

    Options +FollowSymLinks
    RewriteEngine on
    RewriteRule dir(.*)-(.*)\htm$ indexphp?page=$1&category=$2

    RewriteRule pagi(.*)-(.*)-(.*)\htm$ indexphp?show=$1&page=$2&category=$3

    RewriteRule business(.*)-(.*)-(.*)\htm$ indexphp?page=$1&get_id=$2&category=$3

    P.S. I deleted dots because I couldn't post it with it.

  4. #4
    Theoretical Physics Student bronze trophy Jake Arkinstall's Avatar
    Join Date
    May 2006
    Location
    Lancaster University, UK
    Posts
    7,062
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Well, if you use:
    Code:
    Options +FollowSymLinks
    RewriteEngine on
    RewriteRule ^browse/([0-9]+)/?$ /?page=browse&category=$1
    RewriteRule ^detail/([0-9]+)/?$ /?page=detail&get_id=$1
    Then the url: browse/15 will redirect to /?page=browse&category=15

    But I hope you realise that it won't automatically rename your links - you'll have to do that yourself.
    Jake Arkinstall
    "Sometimes you don't need to reinvent the wheel;
    Sometimes its enough to make that wheel more rounded"-Molona


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •