var sidebar_align = 'right';
var content_container_margin = parseInt('350px');
var sidebar_width = parseInt('330px');
Apache rewrite rule issue please help me......
I have a domain where i need a redirection as described below :
must redirect to
As you can see from the source URL (mydomain.com/t-ABC-048796/sample.jpg) i need the last four characters from the directory name
t-ABC-048796 i.e 8796 . Then it should redirect tocorresponding file under the directory named 8796 (last four characters of directory named t-ABC-048796 ) under mydomain.com/jjj/top/ i.e to the destination URL must be mydomain.com/jjj/top/8796/sample.jpg
RewriteRule ^/[^/]+([0-9][0-9][0-9][0-9])/(.+)$ /jjj/top/$1/$2 [R,L]
It is not working.......thank`s for reply
You might have to strip off the first /
Sorry, the online tester I was using didn't like it either. I should have just listened to it instead of relying on my memory thinking it was a bug.
RewriteRule ^[^/]+([0-9][0-9][0-9][0-9])/(.+)$ /jjj/top/$1/$2 [R,L]
redirection that you mentioned is not at all working ....... you are wrong
from this rule i am near to my result and have some problems
RewriteRule ^t\-SPX\-04\/?(.*)$ "http\:\/\/vstimbers\.com\/jjj\/top\/$1SPX\-04$1.jpg" [R=301,L]
is now going to http://vstimbers.com/mas_assets/thum...PX-043546/.jpg
but i need an output like
"/" i need to remove
is different in form from the
you mention in your original post, and so is the recombination for the destination filename.
I'm not really in the mood for hitting a moving target, so please restate clearly what it is you need, multiple examples for the source and destination and then maybe, someone will want to help you.
really it is vitimbers.com
By oldunis in forum Hosting Security and Technology
Last Post: 04-08-2010, 10:18 AM
By C4talyst in forum Programming Discussion
Last Post: 11-22-2009, 07:53 PM
By cybersavvy in forum Hosting Security and Technology
Last Post: 07-09-2007, 04:20 PM
By rhf133 in forum Programming Discussion
Last Post: 02-18-2006, 06:45 PM
By jaymef in forum Hosting Security and Technology
Last Post: 02-14-2006, 03:29 PM