Hello All,
I am working on .htaccess file having code as below,
RewriteEngine On
RewriteRule ^csp([0-9]+)$ index.php?id=$1
RewriteRule ^csa([0-9]+)$ index.php?id=$1
RewriteRule ^ID([0-9]+)$ index1.php?id=$1
The site was working with same file on other server. When we shifted the server, the problem is in redirection of files.
If I use www.mydomain.com/cd/ID1234567895/ then it works, but if I remove / from the end of url then file is not redirected to index1.php.
Do anyone have knowledge about the solution? I dont know why this problem arises. Is there any setting required for .htaccess depending on server?
Please reply asap.
Thanks in advance.
.htaccess helphtaccess
Page 1 of 1
3 Replies - 606 Views - Last Post: 18 January 2008 - 07:44 AM
Replies To: .htaccess help
#2
Re: .htaccess help
Posted 17 January 2008 - 01:39 PM
are you on the same type of server?
some servers out-of-the-box just don't work with .htaccess, might take a little extra configuration.
does it give you a specific error message or anything?
some servers out-of-the-box just don't work with .htaccess, might take a little extra configuration.
does it give you a specific error message or anything?
#3
Re: .htaccess help
Posted 17 January 2008 - 10:16 PM
Hello capty99,
Thanks for reply.
Server type is same. We are using Linux.
For configuration all other .htaccess files except this folder are running properly.
In this file, problem is that if i use
RewriteRule ^ID([0-9]+)/$ index1.php?id=$1
instead of
RewriteRule ^ID([0-9]+)$ index1.php?id=$1
then the file is working. I dont know why it happens.
Please let me know if u have solution for that. its very urgent for me to solve the issue.
Thanks,
Thanks for reply.
Server type is same. We are using Linux.
For configuration all other .htaccess files except this folder are running properly.
In this file, problem is that if i use
RewriteRule ^ID([0-9]+)/$ index1.php?id=$1
instead of
RewriteRule ^ID([0-9]+)$ index1.php?id=$1
then the file is working. I dont know why it happens.
Please let me know if u have solution for that. its very urgent for me to solve the issue.
Thanks,
#4
Re: .htaccess help
Posted 18 January 2008 - 07:44 AM
I have the same problem in my site too, abhini268
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote





|