NameSilo

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

SpaceshipSpaceship
SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
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
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
AIVikingsAIVikings

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Search: choose where to search from the All tab
Open the search at the top of any page. On the All tab, the list next to the search box lets you choose where to search: everything, all...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back