View previous topic :: View next topic |
Author |
Message |
timleonard -
Joined: 30 Aug 2007 Posts: 16 Location: La Mirada, CA. USA
|
Posted: Fri Aug 27, 2010 4:49 pm Post subject: Redirect from a Port Forwarded IP to mysite/Index.php |
|
|
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 |
|
|
admin Site Admin
Joined: 03 Mar 2002 Posts: 1324
|
Posted: Mon Aug 30, 2010 1:15 pm Post subject: Re: Redirect from a Port Forwarded IP to mysite/Index.php |
|
|
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 |
|
|
timleonard -
Joined: 30 Aug 2007 Posts: 16 Location: La Mirada, CA. USA
|
Posted: Wed Sep 01, 2010 3:20 pm Post subject: Re: Redirect from a Port Forwarded IP to mysite/Index.php |
|
|
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 |
|
|
admin Site Admin
Joined: 03 Mar 2002 Posts: 1324
|
Posted: Sun Sep 05, 2010 2:18 pm Post subject: Re: Redirect from a Port Forwarded IP to mysite/Index.php |
|
|
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 |
|
|
|