This forum has been moved here:
Helicon Tech Community Forum

ISAPI_Rewrite 3.0 (Forum Locked Forum Locked)
 Helicon Tech : ISAPI_Rewrite 3.0
Subject Topic: Simple Redirecting - Plz Help
Author
Message |
asifrizvi
Newbie


Joined: 25 January 2012
Location: Pakistan
Posts: 3
Posted: 25 January 2012 at 7:45pm

Hi to everyone?
Here's my requirement I've using it with no errors but
not getting what I need:

I want to access this:
http://sarhaan.net/projects/eventmanagement/event.php?
id=2&type=landing

by going on this:
http://sarhaan.net/projects/eventmanagement/ems/id/2/land
ing/

here's my code but remember I've shared account with me
and I've other 5 domains as well redirecting here:

Code:

### subdomain redirect v2 ###
RewriteCond Host: (?:.+\.)?sarhaan\.net
RewriteCond URL ^/sarhaansolns/(.*)
RewriteCond METHOD GET
RewriteRule ^/sarhaansolns/(.*) /$1 [I,R]
RewriteCond Host: (?:.+\.)?sarhaan\.net
RewriteCond METHOD POST
RewriteRule ^/sarhaansolns/(.*) /$1
RewriteCond Host: (?:.+\.)?sarhaan\.net
RewriteRule (.*) /sarhaansolns/$1 [I,L]
RewriteCond Host: (?:.+\.)?sarhaan\.net
RewriteCond URL ^/sarhaansolns/(.*)

RewriteRule ^/projects/eventmanagement/ems/id/([0-
9]+)/landing$ /projects/eventmanagement/event.php?
id=$1&type=landing

RewriteRule ^/projects/eventmanagement/ems/id/([0-
9]+)/form$ /projects/eventmanagement/event.php?
id=$1&type=form

RewriteRule ^/projects/eventmanagement/ems/id/([0-
9]+)/thankyou$ /projects/eventmanagement/event.php?
id=$1&type=thankyou



remember: sarhaansolns is the directory on the root where
everything hosting for sarhaan.net?

Please help me out here

__________________
regards,

Syyed Mohammed
Back to Top Visit asifrizvi's Homepage
 
Guests
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -160
Posted: 26 January 2012 at 7:33am

Please, provide the rewrite.log for the testing request.
Logging issues described in FAQ

Regards
Andrew
Back to Top
 
asifrizvi
Newbie


Joined: 25 January 2012
Location: Pakistan
Posts: 3
Posted: 26 January 2012 at 2:17pm

sorry dear but I'm using shared hosting account but what I
just know that they've installed the ver:2.1 and I can only
do the same file they're using on the root of my hosting
account as there're many rules there for my different
domain and one of them I've mentioned above

the only thing which is not running is the above code last
3 lines/rules please help me out here bro...

__________________
regards,

Syyed Mohammed
Back to Top Visit asifrizvi's Homepage
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 27 January 2012 at 3:30am

Please try to fix your config like this:

### subdomain redirect v2 ###
RewriteCond Host: (?:.+\.)?sarhaan\.net
RewriteCond URL ^/sarhaansolns/(.*)
RewriteCond METHOD GET
RewriteRule ^/sarhaansolns/(.*) /$1 [I,R]

RewriteCond Host: (?:.+\.)?sarhaan\.net
RewriteCond METHOD POST
RewriteRule ^/sarhaansolns/(.*) /$1 [I,L]

RewriteCond Host: (?:.+\.)?sarhaan\.net
RewriteRule (.*) /sarhaansolns/$1 [I,L]

#RewriteCond Host: (?:.+\.)?sarhaan\.net
#RewriteCond URL ^/sarhaansolns/(.*)

RewriteCond Host: (?:.+\.)?sarhaan\.net
RewriteRule /projects/eventmanagement/ems/id/([0-9]+)/landing /projects/eventmanagement/event.php\?id=$1&type=landing [I,L]
RewriteCond Host: (?:.+\.)?sarhaan\.net
RewriteRule /projects/eventmanagement/ems/id/([0-9]+)/form /projects/eventmanagement/event.php\?id=$1&type=form [I,L]
RewriteCond Host: (?:.+\.)?sarhaan\.net
RewriteRule /projects/eventmanagement/ems/id/([0-9]+)/thankyou /projects/eventmanagement/event.php\?id=$1&type=thankyou [I,L]

__________________
Regards,
Anton
Back to Top
 
asifrizvi
Newbie


Joined: 25 January 2012
Location: Pakistan
Posts: 3
Posted: 27 January 2012 at 9:37am

THanks for your reply but still nothing happening

What to do man what I think is I mentioned this below into
my .htaccess file on xampp as the /ems/ folder is not
exists?

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

plz guide me bro or I've to change the hosting thats it?


__________________
regards,

Syyed Mohammed
Back to Top Visit asifrizvi's Homepage
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 30 January 2012 at 4:28am

"What to do man what I think is I mentioned this below into my .htaccess file on xampp as the /ems/ folder is not exists?

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d "
- i'm sorry but I didn't quite get this part, could you clarify? Where do you have these rules?

Also, please show the testing request you are trying to make working.

__________________
Regards,
Anton
Back to Top
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version