Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 09-04-2014, 08:51 AM   #1
Zester
Confirmed User
 
Zester's Avatar
 
Industry Role:
Join Date: Jul 2003
Posts: 5,344
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]
__________________
* Mainstream ? $65 per sale
* new male contraception
Zester is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-04-2014, 08:59 AM   #2
johnclark
Confirmed User
 
johnclark's Avatar
 
Industry Role:
Join Date: Sep 2013
Posts: 196
old url to new url? Dunno
__________________
info[at]gallerytraffic.net
Icq: 680 - 927 - 770
johnclark is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-04-2014, 09:06 AM   #3
just a punk
So fuckin' bored
 
just a punk's Avatar
 
Industry Role:
Join Date: Jun 2003
Posts: 32,344
http://stackoverflow.com/questions/7...nd-in-htaccess
__________________
Obey the Cowgod
just a punk is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-04-2014, 12:46 PM   #4
Barry-xlovecam
It's 42
 
Industry Role:
Join Date: Jun 2010
Location: Global
Posts: 18,083
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.
Barry-xlovecam is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.