Results 1 to 6 of 6

Getting "links.php" to "links"...

This is a discussion on Getting "links.php" to "links"... within the General Discussion forums, part of the vBulletin SEO Discussion category; I would like to make my "links.php" URL be accessible by simply typing in mydomain.com/forums/links without the ".php" on the ...

  1. #1
    Senior Member Sonnie's Avatar
    Real Name
    Sonnie
    Join Date
    May 2006
    Location
    L.A. (Lower Alabama)
    Posts
    305
    Liked
    2 times

    Getting "links.php" to "links"...

    I would like to make my "links.php" URL be accessible by simply typing in mydomain.com/forums/links without the ".php" on the end.

    Is there a rewrite that won't clash with the vBSEO .htaccess that can be inserted in .htaccess ... or is this the simplest way to do this?

    Here's my .htaccess file:

    RewriteEngine On

    RewriteCond %{HTTP_HOST} ^hometheatershack.com
    RewriteCond %{REQUEST_URI} ^/forums/
    RewriteRule (.*) http://www.hometheatershack.com/forums/$1 [R=301,L]

    RewriteRule ^((urllist|sitemap).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]

    RewriteCond %{REQUEST_FILENAME} -f
    RewriteCond %{REQUEST_FILENAME} (admincp|modcp|clientscript|cpstyles|images)/

    RewriteRule ^(.*)$ $1 [L]
    RewriteCond %{QUERY_STRING} !vbseourl=
    RewriteCond %{REQUEST_FILENAME} !chat
    RewriteRule ^(.*\.php)$ vbseo.php?vbseourl=$1&%{QUERY_STRING} [L]

    RewriteRule ^(archive/.*)$ vbseo.php?vbseourl=$1&%{QUERY_STRING} [L]

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.+)$ vbseo.php?vbseourl=$1&%{QUERY_STRING} [L]
    Thanks!

  2. #2
    Senior Member
    Real Name
    Joseph Ward
    Join Date
    Jun 2005
    Posts
    23,847
    Liked
    32 times
    Blog Entries
    9
    Try a custom rewrite rule:
    Code:
    'links\.php$' => 'links/'

  3. #3
    Senior Member Sonnie's Avatar
    Real Name
    Sonnie
    Join Date
    May 2006
    Location
    L.A. (Lower Alabama)
    Posts
    305
    Liked
    2 times
    Where would I place that and is that all I will need... that exact coding above?

    I tried
    RewriteRule 'links\.php$' => 'links/'

    ...but the forum did not like it.

    Thanks!

  4. #4
    Senior Member
    Real Name
    Joseph Ward
    Join Date
    Jun 2005
    Posts
    23,847
    Liked
    32 times
    Blog Entries
    9
    Hi Sonny,

    This was not intended for your htaccess file. It is for our CRR (Custom Rewrite Rules) feature, which you can find within your vBSEO Control Panel (vbseocp.php).

  5. #5
    Senior Member Sonnie's Avatar
    Real Name
    Sonnie
    Join Date
    May 2006
    Location
    L.A. (Lower Alabama)
    Posts
    305
    Liked
    2 times
    Did you forget you were talking to a hillbilly? An ignorant one at that.

    Yup... perfect. That did exactly what I wanted.

    Many thanks!

  6. #6
    Senior Member
    Real Name
    Joseph Ward
    Join Date
    Jun 2005
    Posts
    23,847
    Liked
    32 times
    Blog Entries
    9
    Glad to hear it's working.

Posting Permissions

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