GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Webmaster Q & Fuckin' A (https://gfy.com/forumdisplay.php?f=27)
-   -   mod_rewrite fake directory (https://gfy.com/showthread.php?t=968047)

nexcom28 05-12-2010 03:46 AM

mod_rewrite fake directory
 
Anyone know how to add an additional folder into a URL?

For example:

www.mysite.com/sexy-legs.html
www.mysite.com/sexy-feet.html

changed to:

www.mysite.com/fetish/sexy-legs.html
www.mysite.com/fetish/sexy-feet.html

using mod_rewrite / .htaccess??

PowerCum 05-12-2010 06:51 AM

Read the mod_rewrite documentation here

http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html

After readin and understanding how mod_rewrite works you will be able to do much more complex stuff than just creating virtual directories.

fatfoo 05-13-2010 11:29 AM

Interesting documentations, PowerCum.

AdultSoftwareSolutions 05-18-2010 04:49 PM

Don't use mod_rewrite. There is an easier way.

ln -s source_file.html dest_file.html

You can also do it with an entire folder.

You can also rewrite everything to index.php and parse it from there.


All times are GMT -7. The time now is 11:34 AM.

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