Login
Register
Home
Wiki Knowledge Base
FreeDNS
Facebook
Linux Support
Control Web Panel
MENU
Home
Help
Search
Login
Register
Control Web Panel
»
WebPanel
»
CentOS-WebPanel Bugs
»
RewriteEngine doesn't work for "profile"
« previous
next »
Print
Pages: [
1
]
Author
Topic: RewriteEngine doesn't work for "profile" (Read 7307 times)
0 Members and 1 Guest are viewing this topic.
Aalesund
Newbie
Posts: 14
RewriteEngine doesn't work for "profile"
«
on:
January 12, 2015, 11:27:35 PM »
In my website I use RewriteEngine for seo optimization, but I found that if you try use "profile" in rewriting link it doesn't work properly.
Here's an example:
RewriteRule ^profile/([0-9]+)/.+/?$ profile.php?id=$1 [L]
RewriteRule ^profiles/([0-9]+)/.+/?$ profile.php?id=$1 [L]
Link1:
http://www.site.com/profile/1/username
Link2:
http://www.site.com/profiles/1/username
Both links must loaded to
http://www.site.com/profile.php?id=1
But actually only the link2 works properly.
Link1 returns 404 error or some custom pages.
This is a bug caused by CWP because other panels not have this problem and both links works properly.
Logged
Administrator
Administrator
Hero Member
Posts: 1637
Don't forget to donate
Re: RewriteEngine doesn't work for "profile"
«
Reply #1 on:
January 19, 2015, 02:40:43 AM »
have you checked the logs and is this maybe related with the mod_security?
Logged
AntiDDoS Protection (web + mail)
http://centos-webpanel.com/website-ddos-protection-proxy
Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp
Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor
Do you need Fast and FREE Support included for your CWP linux server?
http://centos-webpanel.com/noc-partner-list
Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services
Print
Pages: [
1
]
« previous
next »
Control Web Panel
»
WebPanel
»
CentOS-WebPanel Bugs
»
RewriteEngine doesn't work for "profile"