![]() |
mod_rewrite correct?
I am having trouble with mod rewrite. I have looked at some tutorials and one of them stated to look for a module after running the phpinfo() thingy. I didnt have it, but after logging into godaddy (my host) they say all their linux hosting does. So I should. My question is should this work correcty or am I screwing something up. Im still really new at this and reg expressions arent my good buddy yet.
The rewrite should take a page called MoreInfo.php?p=22 into MoreInfo/p/22/ Code:
Options +FollowSymLinks |
That should work, but maybe give this a try?
Code:
Options +FollowSymLinks |
Hum nope didn't work either must be the host. I will have to give them a call. Thanks delayed.
|
No problems... are you getting a 500 error when you attempt to add that to your .htaccess, or is it just not redirecting properly?
-m |
I just get a "No input file specified." thats it.
|
Hmmm, you sure that's not an error from your php script? Do you have it online somewhere for us to see?
-m |
No its not online but should be within the next week or 2. But I dont think it has to do with php because the file works perfectly fine on its own.
|
I was just thinking even if it wasn't online in the going live sense, maybe it was somewhere we could poke and prod at it in the test sense. Generally speaking if you have a rewrite rule in your .htaccess and you're not getting a 500, then mod_rewrite is enabled and working. I was thinking it might be one of those times we're both missing something simple... ;-) Is the full URL on your test something like; http://localhost/moreinfo.php?p=22 ?
-m |
What specifically is done to generate the 'no input file generated' error message? Is this an error message that comes from moreinfo.php when an invalid value for p= is specified?
|
Hey, try:
Quote:
base tag inside the <head> tag:Code:
<base href="http://www.yoursite.com" /> |
Quote:
Ill try that out CMellor when i get a chance thanks. |
Quote:
typo? Anyways, what I meant was does moreinfo.php generate that above error if you say go to the url /moreinfo.php?p=283234 |
ye sorry i meant moreinfo/p/11 even if i use a number with no correct info I get the same No input file specified.
I have created a test page online to help with this. The link is http://www.osguide.net/test/test.php?$p=1 and this link should work http://www.osguide.net/test/test/p/1/ Here is the .htaccess file Code:
Options +FollowSymLinksPHP Code:
|
Try adding;
Code:
Options -MultiViews-m |
nope as you see now it is just not found all together.
|
The following should work without a doubt... are you sure mod_rewrite is installed / active?
Code:
Options +FollowSymLinks |
| All times are GMT. The time now is 04:39 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0