hi,
I have been trying to do my .htaccess all day the best I can get is this:
to
Code:
www.ebooklobby.com/details/51/Life%2520in%2520the%2520Red%2520Brigade/?id=51&title=Life%2520in%2520the%2520Red%2520Brigade
I want to get rid of the ?id=51&title=Life%2520in%2520the%2520Red%2520Briga de on the end. On the link to the page I pass the id and title parameters is there a way to remove them from the end of the url. Also I want to get rid of the %2520 characters.
The url I want is
Code:
http://www.ebooklobby.com/ebook-title/
Here is the code of the .htaccess file
Code:
RewriteEngine on
#
# Internally rewrite search engine friendly static URL to dynamic filepath and query
RewriteRule /([^/]+)/([^/]+)/?$ /details.php?id=$1&title=$2 [L]
#
# Externally redirect client requests for old dynamic URLs to equivalent new static URLs
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /details\.php\?id=([^&]+)&title=([^&]+)\ HTTP/
RewriteRule ^details\.php$ http://www.ebooklobby.com/details/%1/%2/ [R=301,L]