Jump to content

mod_rewrite works but not with the "-" sign


redknight

Recommended Posts

Hi

 

I have rewrited multiple dirs (from http://www.web.net/dir1/web.php?q=pagewxwx2121_fgfdg-dfgdf to  http://www.web.net/dir1/pagewxwx2121_fgfdg-dfgdf.php) and that is working fine, until the dir has a - in the name like http://www.web.net/dir100-extra/page12sdfs_kiui-uikk.php. I get a 404 for this.

 

RewriteRule ^([^/]+)/([^/]+)\.php$ /$1/web.php?q=$2 [QSA,L]

 

Any help needed and apprediated, please

Link to comment
https://forums.phpfreaks.com/topic/158929-mod_rewrite-works-but-not-with-the-sign/
Share on other sites

  • 2 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.