michaelalemu / phurl

Automatically exported from code.google.com/p/phurl
0 stars 0 forks source link

phurl can‘t work in the second-level directory, it said can't find redirect.php on this server. #121

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1.install phurl in the second-level directory of your site.
2.generate a short url
3.click the short url

What is the expected output? What do you see instead?
it said The requested URL /redirect.php was not found on this server.

What version of the product are you using? On what operating system?
version is 2.4.2. os is ubuntu.

Please provide any additional information below.
I found a way to solve that issue.
That is modify the .htaccess file, add the second-level directory in front of 
"redirect.php?alias=$1 [L]".
like follow:
Original: RewriteRule ^([a-zA-Z0-9_-]+)$ redirect.php?alias=$1 [L]
Modified: RewriteRule ^([a-zA-Z0-9_-]+)$ /xxx/redirect.php?alias=$1 [L]

Original issue reported on code.google.com by simonk...@gmail.com on 17 Jul 2011 at 4:21

GoogleCodeExporter commented 8 years ago

Original comment by he...@phurlproject.org on 15 Dec 2011 at 12:46

GoogleCodeExporter commented 8 years ago

Original comment by he...@phurlproject.org on 29 May 2012 at 11:30