Page is a not externally linkable
- Code, Content, and Presentation
-- Apache Web Server
---- mod rewrite: url with a dot not redirecting


starchild - 2:37 am on Nov 28, 2011 (gmt 0)


Hi,

We have a weird case of where our htaccess is not kicking in when it should.

The path example being /shopping/some-path-name-5.5/100/1

The page should be redirecting to /shopping/some-path-name-55/100/1, but it's showing a 404 instead.

We are running cpanel.

Below is an abridged output of our htaccess file (w start off by catching old file paths, and redirecting to the new as we have migrated systems).

Any help is greatly appreciated. Thanks a lot.




RewriteEngine on


RewriteRule .*/(.*)/p/(.*)/$ /products/$1/$2/1 [L,R=301]
RewriteRule .*/(.*)/p-(.*)$ /products/$1/$2/1 [L,R=301]
RewriteRule .*/(.*)/c/(.*)/page/(.*)/$ /shopping/$1/$2/1 [L,R=301]
RewriteRule .*/(.*)/c-(.*)$ /shopping/$1/$2/1 [L,R=301]
RewriteRule .*/(.*)/g-(.*)-page-(.*)$ /shopping/$1/100$2/$3 [L,R=301]
RewriteRule .*/(.*)/g/(.*)/page/(.*)/$ /shopping/$1/100$2/$3 [L,R=301]


RewriteCond %{REQUEST_URI} !\.
RewriteCond %{REQUEST_URI} !//

RewriteRule (.*)/(.*)/(.*)/(.*) $1.php?id=$3&page=$4&name=$2 [L,QSA]


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