View Full Version : URL Rewrite not working
searchpurple
08-16-2006, 09:22 PM
When I turn URL rewrite off in the admin panel, all the links work fine. But when I turn it off, the links send me to a "page not found" error. Whats wrong?
PS: I dont know if this is related or not, but the pagerank next to each link is not working.
searchpurple
08-16-2006, 11:21 PM
Until the problem with the PR is solved, I removed them. Basically, the image shows up, but it says everything is a PR0.
gearoid
08-17-2006, 10:46 AM
Hi searchpurple,
For url rewrite to work, you must have a line in your .htaccess file which contains the following lines;
RewriteEngine On
RewriteBase /
Sometimes when additional pages/categories have been added, you must run the "rewriter" ( see htaccess rewriter mod (http://www.phplinkdirectory.com/forum/showthread.php?t=1702) and copy the output from that, into your .htaccess file, also.)
Well at least, thats where I went wrong.
Good luck.
As for pr status, I've no idea.
searchpurple
08-17-2006, 02:34 PM
Does
"RewriteEngine On
RewriteBase /"
have to be anywhere specific in the .htaccess?
Also, I tried downloading that rewriter, but apparently I need a password...?
searchpurple
08-25-2006, 02:54 AM
So no one knows the answer?
proprod
08-25-2006, 02:57 AM
Content visible to registered users only.
Content visible to registered users only.
Best if first two lines.
searchpurple
08-25-2006, 04:29 AM
Even above these 2 lines?
# -FrontPage-
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
proprod
08-25-2006, 04:57 AM
Content visible to registered users only.
Well, place it after that, I suppose, it shouldn't matter either way. Try both ways.
gearoid
08-26-2006, 03:04 PM
Hi searchpurple,
Did you get fixed up?
Cos I'm not sure that you are editing the correct file
"# -FrontPage-
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*"
(I don't know what that is)
Is it in a file named .htaccess ?
searchpurple
08-26-2006, 06:06 PM
yea its the .htaccess file. Here are the contents of that file:
# -FrontPage-
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
RewriteEngine On
RewriteBase /
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName
AuthUserFile /home/devilzf/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/devilzf/public_html/_vti_pvt/service.grp
gearoid
08-26-2006, 06:18 PM
You better get the rewriter so;
there should be other stuff there like
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
and then a load of lines like;
RewriteRule ^Abbeyfeale(.*) index.php
RewriteRule ^Abbeylara(.*) index.php
RewriteRule ^Abbeyleix(.*) index.php
RewriteRule ^Abbeyshrule(.*) index.php
RewriteRule ^Accessories(.*) index.php
where the word "Abbeyfeale" would be the category name. It'll be different in your case of course.
searchpurple
08-27-2006, 04:34 AM
Do I really have to pay $10 to get that rewriter?
David
08-27-2006, 04:52 AM
You might want to ask VSDan (not directly affiliated with phpLD but a great supporter). I think mainly he just wants some compensation for the time puts into writing and supporting his mods.
Allan
09-24-2006, 01:03 PM
Hey Search Purple,
Does your frontpage works after you added on the Rewrite code??
Look at mine.
# -FrontPage-
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule .* index.php [QSA,L]
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName
AuthUserFile /home/addurl/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/addurl/public_html/_vti_pvt/service.grp
It helps with the rewrite url.. but now i cannot use my frontpage at all.
I have other websites and uses frontpage to access to all the sites (reseller hosting under same cpanel).. now i cannot access to them via frontpage.. a big issue..
Would like to know if u have the same situation or not. Or if someone here has got the same issues..
Thank you for reading..
Oh yea, is there such a problem in Version 3?? I do have a very limited budget, hence i went with v2 1st..
Content visible to registered users only.
vBulletin® v3.8.0, Copyright ©2000-2012, Jelsoft Enterprises Ltd.