Redirect from a Port Forwarded IP to mysite/Index.php

 
Post new topic   Reply to topic    Aprelium Forum Index -> URL Rewriting
View previous topic :: View next topic  
Author Message
timleonard
-


Joined: 30 Aug 2007
Posts: 16
Location: La Mirada, CA. USA

PostPosted: Fri Aug 27, 2010 4:49 pm    Post subject: Redirect from a Port Forwarded IP to mysite/Index.php Reply with quote

I am using the abyss 2.6 x1

Since I do not have a static ip I use a port forward to an IP address so the question is...Is possible to redirect incoming request from the incoming IP address to mysite/index.php...for example http://1.2.3.4:88 to http://1.2.3.4:88/mysite/index.php and if so how???
Back to top View user's profile Send private message
admin
Site Admin


Joined: 03 Mar 2002
Posts: 921

PostPosted: Mon Aug 30, 2010 1:15 pm    Post subject: Re: Redirect from a Port Forwarded IP to mysite/Index.php Reply with quote

timleonard wrote:
I am using the abyss 2.6 x1

Since I do not have a static ip I use a port forward to an IP address so the question is...Is possible to redirect incoming request from the incoming IP address to mysite/index.php...for example http://1.2.3.4:88 to http://1.2.3.4:88/mysite/index.php and if so how???


Why having a subdirectory called /mysite in that case? Can't you reorganize your Web site files so that http://1.2.3.4:88/ is your root directory and declare index.php as one of your Index files?
_________________
Follow @abyssws on Twitter
Subscribe to our newsletter
_________________
Forum Administrator
Aprelium - https://aprelium.com
Back to top View user's profile Send private message
timleonard
-


Joined: 30 Aug 2007
Posts: 16
Location: La Mirada, CA. USA

PostPosted: Wed Sep 01, 2010 3:20 pm    Post subject: Re: Redirect from a Port Forwarded IP to mysite/Index.php Reply with quote

Well its just that I built my site using folders and all the links are made to it. For example... /mysite, /mytestsite, /my_additional_site

Currently use an .html file to redirect it to /mysite.index.php and wanted to know if it was possible with a rewrite rule
Back to top View user's profile Send private message
admin
Site Admin


Joined: 03 Mar 2002
Posts: 921

PostPosted: Sun Sep 05, 2010 2:18 pm    Post subject: Re: Redirect from a Port Forwarded IP to mysite/Index.php Reply with quote

timleonard,

Create a rule which virtual path regular expression is ^/$ and which redirects to /mysite/. This should work fine.
_________________
Follow @abyssws on Twitter
Subscribe to our newsletter
_________________
Forum Administrator
Aprelium - https://aprelium.com
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> URL Rewriting All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group