2
Contributors
17
Replies
21
Views
5 Years
Discussion Span
Last Post by ak47carbon
0

Hi,

I think that th rewrite module is not active or not istalled in your server, to verify this do :

<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteRule ^use-([0-9]+)\.html$ use.php?id=$1  [L]
</IfModule>
<IfModule !mod_rewrite.c>
    ErrorDocument 404 http://www.daniweb.com
</IfModule>  

Here, the 1st if will check if the rewrite module exist and active and then do the rewrite and the second one if it's not and then go to daniweb.com.
Then if the module does not exist or not active, you should activate or add it to you apache.

0

Mr akmozo
your given coding is not working it doesnot show any response

0

This code is to put in your htaccess file, and it's to verify if the rewrite module is active or not.

0

i create another code by using your code below code RewriteCond is properply working u can check out but problem is that use.php?id=129 is not working means RewriteRule is not working

<IfModule mod_rewrite.c>
Options +FollowSymlinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^proudlypakistani\.com$
RewriteRule (.*) http://www.proudlypakistani.com/$1 [R=301,L]
RewriteEngine on
RewriteRule ^use-([0-9]+)\.html$ use.php?id=$1 [L]
</IfModule>
<IfModule !mod_rewrite.c>
ErrorDocument 404 http://www.daniweb.com
</IfModule> 
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.