Results 1 to 5 of 5

Define Homepage Alias

This is a discussion on Define Homepage Alias within the General Discussion forums, part of the vBSEO SEO Plugin category; In vbseocp you can list "forum" homepage aliases, how can I add these same settings for my root homepage? I ...

  1. #1
    Senior Member
    Join Date
    Nov 2005
    Posts
    165
    Liked
    0 times

    Define Homepage Alias

    In vbseocp you can list "forum" homepage aliases, how can I add these same settings for my root homepage? I would like these included:
    index.php?
    index.php
    index.php?s=

    So just as forum/index.php?s= is redirected to forum/, I would like index.php?s= to be redirected to /.

    Thanks,

  2. #2
    vBSEO Staff Juan Muriente's Avatar
    Real Name
    Juan Carlos Muriente
    Join Date
    Jun 2005
    Location
    Puerto Rico
    Posts
    14,266
    Liked
    586 times
    Try adding the following rewrite rules in your root .htaccess:
    Code:
    RewriteEngine on
    RewriteCond %{THE_REQUEST} index\.php
    RewriteRule ^index\.php http://www.domain.com/ [L,R=301]
    That should work

  3. #3
    Senior Member
    Join Date
    Nov 2005
    Posts
    165
    Liked
    0 times
    Hi Juan,

    That worked great for index.php, however if someone visits index.php?s=, the URL is wrote to /?s=, how can I rewrite all 3 variations to /?

    Thanks!

  4. #4
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,741
    Liked
    168 times
    Try to switch from:
    Code:
    RewriteRule ^index\.php http://www.domain.com/ [L,R=301]
    to:
    Code:
    RewriteRule ^index\.php http://www.domain.com/? [L,R=301]

  5. #5
    Senior Member
    Join Date
    Nov 2005
    Posts
    165
    Liked
    0 times
    Excellent, that did it. Thanks Oleg!

Similar Threads

  1. last 10 threads on my homepage (with all the VBSEO rules)
    By cfages in forum General Discussion
    Replies: 2
    Last Post: 05-25-2006, 01:02 PM
  2. Define Homepage Aliases
    By john_robot in forum URL Rewrite Settings
    Replies: 21
    Last Post: 10-15-2005, 10:27 AM

Posting Permissions

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