I have installed pastebin
http://pastebin.com/ on one of my sites.
In the documentation it says for short url generation add a rewrite rule like the following
Code:
RewriteEngine on
RewriteRule /([0-9]+) /pastebin.php?show=$1
Basically instead of having this for a url
somesite.com/pastebin.php?show=55
you would have
somesite.com/55
So I setup the .htaccess file with the rewrite rule from above.
When I go to pastebin.somesite.com/55 it gives me a 404 not found but if I go to pastebin.somesite.com/pastebin.php?show=55 it shows the page.
For some reason the rewrite rule works just not at the site root.
If you go to
pastebin.somesite.com/non-existent-directory/1
it works, but if you go to
pastebin.somesite.com/1
it spits out the 404 error
The Rewrite rule works. Just not for the root level of the site.
I want it to work at the root level also.
Do any of you have any suggestions for the rule, or maybe why it doesnt work?
Thanks in advance for any help you can provide.