[users@httpd] mod_rewrite and anchors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello!

I have the following problem. I create some rules with mod rewrite to mask
real path to files


	RewriteEngine on

	RewriteBase /

	#two parameters: language, page

	RewriteCond %{REQUEST_FILENAME} !-f
	RewriteCond %{REQUEST_FILENAME} !-d
	RewriteRule ^(.*)_(.*).htm$ index.php?lang=$1&page=$2


this will mask www.domain.com/index.php?lang=en&page=135  to
www.domain.com/en_137.htm


But i want to upgrade the rule to accept anchors... So to accept syntax as
www.domain.com/en_137.htm#demoanchor

I don't want to put anchor name in file name as
www.domain.com/en_137_demoanchor.htm  because the browser will request this
file from server one more again, even if before was requested
www.domain.com/en_137.htm.

I tried some rules, but none is working...

Cristian


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux