Page is a not externally linkable
- Code, Content, and Presentation
-- Apache Web Server
---- Hide/changing .php?=


HaloPlayer - 6:08 am on Nov 5, 2012 (gmt 0)


Thanks!

I've tidied it up a bit:

Options +FollowSymlinks

RewriteEngine on

RewriteCond %{THE_REQUEST} name=([-a-z0-9_]+)

RewriteRule ^book\.php$ /book/%1? [R=301,L]

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^book/([-a-z0-9_]+)$ /book.php?name=$1 [L]



You say the redirect target should contain the cannonical protocol and hostname, are you referring to this?:
HTTP/1.1 Is this just placed at the end of the redirect target?

And when you say "Directly after your "specific" redirect, you need to add the "general" non-www/www canonicalisation redirect."
You are just referring to the base URL of the site?


Thread source:: http://www.webmasterworld.com/apache/4501915.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com