this is the URL structure
- Code: Select all
/forum/gallery/browseimages.php?c=38&userid=
Now I would like to remove the
- Code: Select all
&userid=
I'm lost lol..
Also, the number (in this case 38 ) will be different most of the time.
/forum/gallery/browseimages.php?c=38&userid=
&userid=
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{QUERY_STRING} ^((.*&)?c=.+)&userid=$ [NC,OR]
RewriteCond %{QUERY_STRING} ^userid=&((.*&)?c=.+)$ [NC]
RewriteRule ^(forum/gallery/browseimages\.php)$ /$1?%1 [R=301,L]
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{QUERY_STRING} ^(?:(.*)&)?userid=&?$ [NC,OR]
RewriteCond %{QUERY_STRING} ^&?userid=&(.+)$ [NC,OR]
RewriteCond %{QUERY_STRING} ^(.+)&userid=&(.+)$ [NC]
RewriteRule ^(forum/gallery/browseimages\.php)$ /$1?%1%2 [R=301,L]
RewriteEngine On
Options -Indexes
Options +FollowSymLinks
ErrorDocument 404 /forum
RewriteCond %{http_host} ^documentingreality.com [NC]
RewriteRule ^(.*)$ http://www.documentingreality.com/$1 [R=301,L]
Redirect 301 /feed http://www.documentingreality.com/forum/external.php
Redirect 301 /forums/ http://www.documentingreality.com/forum/
Redirect 301 /images/spitzer http://www.documentingreality.com/forum/gallery/browseimages.php?c=14
Redirect 301 /iraq-war-images http://www.documentingreality.com/forum/f152/
Redirect 301 /iraq-war-images/ http://www.documentingreality.com/forum/f152/
Redirect 301 /courtroom-fight-videos http://www.documentingreality.com/forum/f57/
Redirect 301 /video http://www.documentingreality.com/forum/f57/
Redirect 301 /27/woman-has-the-ability-to-double-her-pleasure/ http://www.documentingreality.com/forum/f149/woman-has-two-vaginas-10631/
Redirect 301 /images/jennifer-love-hewitt-fat-1.jpg http://www.documentingreality.com/forum/f3/jennifer-love-hewitt-fat-beach-pictures-9049
Redirect 301 /images/jennifer-love-hewitt-fat-2.jpg http://www.documentingreality.com/forum/f3/jennifer-love-hewitt-fat-beach-pictures-9049
Redirect 301 /images/jennifer-love-hewitt-fat-3.jpg http://www.documentingreality.com/forum/f3/jennifer-love-hewitt-fat-beach-pictures-9049
Redirect 301 /images/jennifer-love-hewitt-fat-4.jpg http://www.documentingreality.com/forum/f3/jennifer-love-hewitt-fat-beach-pictures-9049
Redirect 301 /images/jennifer-love-hewitt-fat-5.jpg http://www.documentingreality.com/forum/f3/jennifer-love-hewitt-fat-beach-pictures-9049
Redirect 301 /images/jennifer-love-hewitt-fat-6.jpg http://www.documentingreality.com/forum/f3/jennifer-love-hewitt-fat-beach-pictures-9049
Redirect 301 /images/jennifer-love-hewitt-fat-7.jpg http://www.documentingreality.com/forum/f3/jennifer-love-hewitt-fat-beach-pictures-9049
Redirect 301 /images/jennifer-love-hewitt-fat-8.jpg http://www.documentingreality.com/forum/f3/jennifer-love-hewitt-fat-beach-pictures-9049
Redirect 301 /forum/f134/ http://www.documentingreality.com/forum/gallery/browseimages.php?c=6
Redirect 301 /forum/attachments/f2/8780d1171471228-33-weird-unusual-shaped-houses-around-world-saucer-house-santa-monica-blvd-west-hollywood.jpg http://www.documentingreality.com/forum/f2/33-weird-unusual-shaped-houses-around-world-2456/
Redirect 301 /images/c/chs.jpg http://www.documentingreality.com/forum/f10/columbine-8295/
RewriteRule ^((urllist|sitemap).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
RewriteCond %{QUERY_STRING} ^(?:(.*)&)?userid=&?$ [NC,OR]
RewriteCond %{QUERY_STRING} ^&?userid=&(.+)$ [NC,OR]
RewriteCond %{QUERY_STRING} ^(.+)&userid=&(.+)$ [NC]
RewriteRule ^(forum/gallery/browseimages\.php)$ /$1?%1%2 [R=301,L]
# Comment the following line (add '#' at the beginning)
# to disable mod_rewrite functions.
# Please note: you still need to disable the hack in
# the vBSEO control panel to stop url rewrites.
RewriteEngine On
Options +FollowSymLinks
# Some servers require the Rewritebase directive to be
# enabled (remove '#' at the beginning to activate)
# Please note: when enabled, you must include the path
# to your root vB folder (i.e. RewriteBase /forums/)
#RewriteBase /
#RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com
#RewriteRule (.*) http://www.yourdomain.com/forums/$1 [L,R=301]
RewriteRule ^((urllist|sitemap).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
RewriteCond %{REQUEST_URI} !(ads/|admincp/|modcp/|cron|vbseo_sitemap)
RewriteRule ^((archive/)?(.*\.php(/.*)?)?)$ vbseo.php [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images|gallery|adserver)/
RewriteRule ^(.+)$ vbseo.php [L,QSA]
RewriteRule ^view_(.*).htm$ view.php?pg=$1
RewriteCond %{QUERY_STRING} ^(?:(.*)&)?userid=&?$ [NC,OR]
RewriteCond %{QUERY_STRING} ^&?userid=&(.+)$ [NC,OR]
RewriteCond %{QUERY_STRING} ^(.+)&userid=&(.+)$ [NC]
RewriteRule ^(gallery/browseimages\.php)$ /forum/$1?%1%2 [R=301,L]
RewriteEngine On
Return to Friendly URLs with Mod_Rewrite
Users browsing this forum: No registered users and 84 guests