News not working with mod_rewrite - eSyndiCat User Forums
eSyndiCat User Forums esyndicat directory software esyndicat support

Go Back   eSyndiCat User Forums > eSyndiCat Directory Software [FREE] > Common Questions

Common Questions Latest releases, patches, bugfixes and changes in eSyndiCat Directory Software free version. Feel really frustrated after having spent several hours trying to figure out what went wrong with your directory? Wait no more! Click the link above and post your issues. Right here. Right now.

Reply
 
Thread Tools Display Modes
Old 09-24-2006   #1
spage1970
 
Join Date: Jul 2006
Posts: 35
spage1970 is on a distinguished road
Default News not working with mod_rewrite

Hi,

I have the following text in my .htaccess file:

RewriteEngine on

RewriteRule ^(.*)/$ index.php?category=$1 [QSA,L]
RewriteRule ^(.*)/index([0-9]+).html$ index.php?category=$1&page=$2 [QSA,L]

RewriteRule ^new-links.html$ new-links.php [QSA,L]
RewriteRule ^new-links([0-9]+).html$ new-links.php?page=$1 [QSA,L]

RewriteRule ^top-links.html$ top-links.php [QSA,L]
RewriteRule ^top-links([0-9]+).html$ top-links.php?page=$1 [QSA,L]

RewriteRule ^popular-links.html$ popular-links.php [QSA,L]
RewriteRule ^popular-links([0-9]+).html$ popular-links.php?page=$1 [QSA,L]

RewriteRule ^editor-links/index.html$ editor-links.php [QSA,L]
RewriteRule ^editor-links/index([0-9]+).html$ editor-links.php?page=$1 [QSA,L]

RewriteRule ^(.*)/(.*)-l([0-9]+).html$ view-link.php?cat=$1&title=$2&id=$3 [QSA,L]



This works fine apart from the fact that when I try and read any news item I get an error.

Any ideas?
spage1970 is offline   Reply With Quote
Old 09-24-2006   #2
WTM
Loyal User
 
WTM's Avatar
 
Join Date: Feb 2006
Location: Mockba - New York
Posts: 1,354
WTM is on a distinguished road
Send a message via Skype™ to WTM
Default

Link... please
WTM is offline   Reply With Quote
Old 09-24-2006   #3
spage1970
 
Join Date: Jul 2006
Posts: 35
spage1970 is on a distinguished road
Default

http://directory.pod-star.com

thanks
spage1970 is offline   Reply With Quote
Old 09-25-2006   #4
WTM
Loyal User
 
WTM's Avatar
 
Join Date: Feb 2006
Location: Mockba - New York
Posts: 1,354
WTM is on a distinguished road
Send a message via Skype™ to WTM
Default

This is related to server setup with some hosts.
Try to add this line in the beginning of .htaccess file right before "RewriteEngine on":
Code:
Option -MultiViews
I know this has helped with 1and1 hosting and GoDaddy
WTM is offline   Reply With Quote
Old 09-25-2006   #5
spage1970
 
Join Date: Jul 2006
Posts: 35
spage1970 is on a distinguished road
Default

I tried adding that line but all I got was a server error when trying to view the site.

Any more ideas?
spage1970 is offline   Reply With Quote
Old 09-25-2006   #6
Vincent Wright
 
Join Date: Sep 2005
Posts: 1,421
Vincent Wright is an unknown quantity at this point
Default

Do you have /news/ folder on your site? Please check it via ftp.
Vincent Wright is offline   Reply With Quote
Old 09-25-2006   #7
spage1970
 
Join Date: Jul 2006
Posts: 35
spage1970 is on a distinguished road
Default

No, there is no folder named /news/ on my website just checked via ftp
spage1970 is offline   Reply With Quote
Old 09-25-2006   #8
Vincent Wright
 
Join Date: Sep 2005
Posts: 1,421
Vincent Wright is an unknown quantity at this point
Default

Ok, don't have any more ideas right now.

Can you send ftp/cpanel/dir admin credentials and I will take a closer look then.
Vincent Wright is offline   Reply With Quote
Old 09-25-2006   #9
spage1970
 
Join Date: Jul 2006
Posts: 35
spage1970 is on a distinguished road
Default

Sent you a PM Vincent

Thanks
spage1970 is offline   Reply With Quote
Old 09-26-2006   #10
Vincent Wright
 
Join Date: Sep 2005
Posts: 1,421
Vincent Wright is an unknown quantity at this point
Default

Fixed.

For some reason the rewrite rules for news pages were missing in the .htaccess file. I just added those rules.
Vincent Wright is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 04:48 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Testimonials | Articles | Support | Documentation | Privacy Policy | License | Affiliates | Contact Us | SEO Resources