NameSilo

[Resolved] What's wrong with these rewrite rules?

Spaceship Spaceship
Watch

Barrucadu

Established Member
Impact
64
What's wrong with these rewriterules?

I get a internal server error when I add the following lines to my htaccess file:

Code:
RewriteRule ^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])(/|)$ archive.php?y=$1&m=$2&d=$3 [L]
RewriteRule ^([0-9]+)-([a-z0-9\-]+)(/|)$ viewpoem.php?id=$1 [L]
RewriteRule ^([a-z0-9\-]+)(/|)$ viewcat.php?id=$1 [L]

Any ideas why? It is definatly those 3 lines, because when I comment them out it works perfectly.

After looking in my log file;
Code:
[Sat Oct  6 05:46:32 2007] [alert] [client 83.100.186.127] /home/mikor/public_html/flamingcold.com/.htaccess: RewriteRule: cannot compile regular expression

This htaccess file works perfectly elsewhere, so i'll just contact my host asap.
 
Last edited:
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Dynadot — .com Registration $8.99Dynadot — .com Registration $8.99

We're social

Unstoppable Domains
Domain Recover
DomainEasy — Payment Flexibility
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back