.htaccess support

T

Tuxedo

Guest
#1
Hi,

I'm just install complate open litespeed and install successful wordpress and work ok with rewite rule:
Code:
RewriteBase /wordpress/
RewriteRule ^/index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wordpress/index.php [L]
But when i use my code with rule:
Code:
RewriteRule ^apps/(.*)/id(.*).html$ modules/detail.php?id=$2
RewriteRule ^captcha.jpg$ captcha/CaptchaSecurityImages.php
RewriteRule ^search/([^/]*).html$ modules/search.php?key=$1 [L,QSA]
RewriteRule ^artist/(.*)/id(.*).html$ modules/artist.php?id=$2
RewriteRule ^genre/(.*)/id(.*).html$ modules/genre.php?id=$2
RewriteRule ^request.html$ modules/request.php
It's say not found and not rewrite URL for me
Some one help me about this ?
Thanks
===========================================
Fixed, just add slash at beginning like :

Code:
RewriteRule ^/apps/(.*)/id(.*).html$ modules/detail.php?id=$2
RewriteRule ^/captcha.jpg$ captcha/CaptchaSecurityImages.php
RewriteRule ^/search/([^/]*).html$ modules/search.php?key=$1
RewriteRule ^/artist/(.*)/id(.*).html$ modules/artist.php?id=$2
RewriteRule ^/genre/(.*)/id(.*).html$ modules/genre.php?id=$2
RewriteRule ^/request.html$ modules/request.php
Thanks Fearless
 
Last edited by a moderator:
T

Tuxedo

Guest
#3
Hi,

Thanks for your reply but when i add
Code:
RewriteBase /
Openlitespeed say:
Code:
Invalid rewrite directive: RewriteBase /
 
T

Tuxedo

Guest
#4
Fixed, just add slash at beginning like :
Code:
RewriteRule ^/apps/(.*)/id(.*).html$ modules/detail.php?id=$2
RewriteRule ^/captcha.jpg$ captcha/CaptchaSecurityImages.php
RewriteRule ^/search/([^/]*).html$ modules/search.php?key=$1
RewriteRule ^/artist/(.*)/id(.*).html$ modules/artist.php?id=$2
RewriteRule ^/genre/(.*)/id(.*).html$ modules/genre.php?id=$2
RewriteRule ^/request.html$ modules/request.php
Thanks Fearless
 
Top