Page is a not externally linkable
- Code, Content, and Presentation
-- Apache Web Server
---- SEO friendly URLs


jasimon9 - 3:06 am on Jan 28, 2013 (gmt 0)


Thanks again for the pointers. Yes, I see that the %1 on the second RewriteRule is not needed.

I know you have several times said to include the protocol and hostname on the redirect. However at [httpd.apache.org...] they say the following:

Use of the [R] flag causes a HTTP redirect to be issued to the browser. If a fully-qualified URL is specified (that is, including [servername...] then a redirect will be issued to that location. Otherwise, the current protocol, servername, and port number will be used to generate the URL sent with the redirect.


So I felt that following that would be cleaner. Perhaps you can explain why it is a better practice to include them.

The code I developed is only a prototype, and that I either need to be very careful about the ordering of the parameters, or better yet, use more robust regex as you have suggested.


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