apache rewrite rule
I have a rule:
RewriteRule ^/a/(book)(.*) /c/d/en/a/$1/$2 [L,PT] if i type url www.url/a/book/faq.html it goes to www.url/a/book/ if i type www.url/a/book//faq.html it works and loads source page why so ? |
I'm sorry but I don't have any idea what you're trying to do with rewrite.
Can you explain yourself what you're trying to do, then help may come. |
here is more clarity .... for rewrite rule
source: wwwsite/a/book/faq.html destination: wwwsite/d/en/a/book/faq.html rule i placed: RewriteRule ^/a/(book)(.*) /d/en/a/$1/$2 [L,PT] if i type in browser wwwsite/a/book/faq.html it goes to wwwsite/a/book/ (with no page found 404 error) if i typein browser: wwwsite/a/book//faq.html it works and loads destination page (wwwsite/d/en/a/book/faq.html) why does it working placing // double slashes ? |
its closed space between $1/S2
|
probably if you leave out the $2 to read:
Code:
RewriteRule ^/a/(book)(.*) /d/en/a/$1 [L,PT] I don't know really. good luck... |
Is your RewriteRule within a Directory block?
|
All times are GMT -5. The time now is 01:20 PM. |