Page is a not externally linkable
- Code, Content, and Presentation
-- Apache Web Server
---- replace space with hyphen


fahad_direct - 1:46 pm on Jan 7, 2011 (gmt 0)


I have tried the code but it is not working properly and in the result i am getting only - after domain name like:

[mydoamin-name.com...]

Here is what i am trying for my url:

RewriteRule !^[^\ ]*\ .*$ - [S=4]
RewriteCond %{ENV:myURLpath} =""
RewriteRule ^([7]+)1([0-9]+)0([0-9]+)-PG([0-9]*)-([0-9]*)-V(.*)/P([~A-Za-z0-9]*)-S([^/]*)/ [E=myURLpath=$1,S=1]
RewriteCond %{ENV:myURLpath} =""
RewriteRule ^(.*)$ - [E=myURLpath:$1]
RewriteCond %{ENV:myURLpath} ^([^\ ]*)\ (.*)$
RewriteRule ^ - [E=myURLpath:$1-$2,N]
RewriteRule ^ [%{HTTP_HOST}...] [R=301,L]


Jim, could you correct me please if i am doing anything wrong? :)


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