Menu

#60 SEO Friendly URL: How to remove the extensions after the clean URL

1.2.1-ST
open
Tim Gall
5
2013-11-18
2013-11-18
Anonymous
No

Hi
I have installed osFaq 1.2.1 ST and enabled SEO friendly URL.I want that osFaq does not add some extra characters after the clean URL. For example, after enabling SEO friendly URL, my urls look like following:
http://mysite.com/helpdesk/How-to-learn-webdesinging-c0-a8.html#f8

I want to truncate "-c0-a8.html#f8" from my url, so as it looks like the following:
http://mysite.com/helpdesk/How-to-learn-webdesinging

Do I need to modify my .htaccess file and how to do it?

My .htaccess file:

Options +FollowSymLinks
RewriteEngine On
RewriteBase /helpdesk/

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f

RewriteRule ^(.)-c([0-9]+)-a([0-9]+)-p.html$ osfaq.php?cid=$2&answer=$3&print=true&%{QUERY_STRING}
RewriteRule ^(.
)-c([0-9]+)-a([0-9]+).html$ osfaq.php?cid=$2&answer=$3&%{QUERY_STRING}
RewriteRule ^(.)-c([0-9]+)-a([0-9]+)-(pg|i)([0-9]+)-p.html$ osfaq.php?cid=$2&answer=$3&$4=$5&print=true&%{QUERY_STRING}
RewriteRule ^(.
)-c([0-9]+)-a([0-9]+)-(pg|i)([0-9]+).html$ osfaq.php?cid=$2&answer=$3&$4=$5&%{QUERY_STRING}
RewriteRule ^(.)-c([0-9]+)-(pg|i)([0-9]+)-p.html$ osfaq.php?cid=$2&$3=$4&print=true&%{QUERY_STRING}
RewriteRule ^(.
)-c([0-9]+)-(pg|i)([0-9]+).html$ osfaq.php?cid=$2&$3=$4&%{QUERY_STRING}
RewriteRule ^(.)-c([0-9]+)-p.html$ osfaq.php?cid=$2&print=true&%{QUERY_STRING}
RewriteRule ^(.
)-c([0-9]+).html$ osfaq.php?cid=$2&%{QUERY_STRING}

Discussion

Anonymous
Anonymous

Add attachments
Cancel