harryoh / phurl

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

requested URL /c was not found on this server #101

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm running Phurl2.4.2 on Apache/2.0.63 (Unix) mod_ssl/2.0.63 Port 80
I'm receiving an error after I input url and click on short version hyperlink.  
I am directed to a 404 error page: 'The requested URL /c was not found on this 
server. Additionally, a 404 Not Found error was encountered while trying to use 
an ErrorDocument to handle the request.'

I have the latest version and my .htaccess is in the active directory.
<IfModule mod_rewrite.c>
   RewriteEngine on
   RewriteOptions MaxRedirects=1
   RewriteBase /
   RewriteCond %{REQUEST_FILENAME} !-f
   RewriteCond %{REQUEST_FILENAME} !-d
   RewriteCond %{REQUEST_FILENAME} !-l
   RewriteRule ^([a-zA-Z0-9_-]+)$ redirect.php?alias=$1 [L]
</IfModule>

Why is this not working?  Please help.  Thanks.

Original issue reported on code.google.com by adagio.s...@gmail.com on 5 Dec 2010 at 9:06

GoogleCodeExporter commented 9 years ago
same problem here...

Original comment by sa...@rampagehockey.eu on 6 Dec 2010 at 11:53

GoogleCodeExporter commented 9 years ago
What you are experiencing is an apache configuration issue.

Long story short, make sure mod_rewrite is loaded as well as check your 
document root configuration in Apache for the host to ensure that the .htaccess 
file gets applied.

For more information you can check the site below. They have a nice writeup on 
configuring Apache to support mod_rewrite.

http://codeigniter.com/wiki/mod_rewrite/

Original comment by cott...@gmail.com on 23 Dec 2010 at 2:16

GoogleCodeExporter commented 9 years ago
If you're sure that you have .htaccess present in the root directory of your 
phurl installation, then the only other thing it can be is your server's lack 
of mod_rewrite support. Are you on a hosting package or your own server?

You'll either need to configure mod_rewrite or ask your hosting company to 
enable it for you.

Also, just so you know, Phurl 3 won't use mod_rewrite when it is launched next 
summer.

Original comment by he...@phurlproject.org on 28 Dec 2010 at 10:02

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Easy fix. You need to add the following to your httpd.conf file.

<Directory /INSERT PATH TO HOSTING DIRECTORY/INSERT DOMAIN NAME>
Satisfy all
AllowOverride All
Options FollowSymLinks 
Order allow,deny
Allow from all
</Directory>

Original comment by mquattr...@gmail.com on 9 Jan 2011 at 9:08