Mobile app version of vmapp.org
Login or Join
Merenda212

: Htaccess redirect problem when URL contains forward slash I'm making a POST to a URL like: http://example.com/html/system/api/email/registration My .htaccess looks like this: Options +FollowSymLinks

@Merenda212

Posted in: #Apache #ModRewrite

I'm making a POST to a URL like:
example.com/html/system/api/email/registration

My .htaccess looks like this:

Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_METHOD} (PUT|DELETE|POST|GET)
RewriteRule email/(.*)$ restful.php?resource=email&subject= [L]


But it doesn't match. I have to make the rule like this to match:

RewriteRule email**.***/(.*)$ restful.php?resource=email&subject= [L]


This makes it extremely cumbersome to match more complex substrings. What could be the reason?

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Merenda212

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme