Welcome Guest, Not a member yet? Register   Sign In
need help in htacces rewrite
#1

[eluser]UdayD[/eluser]
Hi!
I am creating an app in CI where i have a requirement
that there are some common forms on different domains which will get submitted on my application.

like example
Domain1.com
Domain2.com
Domain3.com
which will have same forms with same fields. Now each form will get submitted to my url

that is suppose
example.com/submit/checkout.php

but url to which the above forms are going to be submitted will be

example.com/submit/Domain1.com/checkout.php
example.com/submit/Domain2.com/checkout.php
example.com/submit/Domain3.com/checkout.php

So i want my htaccess to redirect to checkout page to redirect to checkout page
if it finds anything after submit
i wrote this

RewriteEngine On
RewriteRule ^/submit/(.*)$ /submit/checkout.php [L]

it gives 404 error
but when i do this

RewriteEngine On
RewriteRule ^(.*)$ /submit/checkout.php [L]
it redirects to chekcout page. Which means my rewrite engine is on

Please help me i really need this solution.

regards
Uday D




Theme © iAndrew 2016 - Forum software by © MyBB