GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   do you know mod_rewrite ? (https://gfy.com/showthread.php?t=1149299)

Zester 09-04-2014 08:51 AM

do you know mod_rewrite ?
 
what does this do ?

Code:

RewriteEngine on
RewriteCond %{REQUEST_URI} .*/book/view.php
RewriteCond $1#%{REQUEST_URI} ([^#]*)#(.*)\1$
RewriteRule ^(.*)$ %2local/new_book/view.php [P,L]
RewriteCond %{REQUEST_URI} .*/book/profile.php
RewriteCond $1#%{REQUEST_URI} ([^#]*)#(.*)\1$
RewriteRule ^(.*)$ %2local/new_book/profile.php [P,L]


johnclark 09-04-2014 08:59 AM

old url to new url? Dunno:Oh crap

just a punk 09-04-2014 09:06 AM

http://stackoverflow.com/questions/7...nd-in-htaccess

Barry-xlovecam 09-04-2014 12:46 PM

Quote:

Use of the [P] flag causes the request to be handled by mod_proxy, and handled via a proxy request.
The [L] flag causes mod_rewrite to stop processing the rule set. In most contexts, this means that if the rule matches, no further rules will be processed

http://httpd.apache.org/docs/current/rewrite/flags.html

http://stackoverflow.com/questions/8...rite-hash-tags
Quote:

N.B. The NE (no escape) flag is important here, otherwise the hash will get URL escaped to %23.


All times are GMT -7. The time now is 04:21 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123