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 01-16-2004, 06:26 PM   #1
TheJimmy
ICQ- five seven 0 2 5 5 0
 
Join Date: Jan 2001
Posts: 10,747
Any Mod Rewrite Gurus here?

RewriteEngine on
Options +FollowSymlinks
RewriteBase /
RewriteRule ^\tata.html$ /file.html




how do I get the 'tata' part to wildcard?





a friend asked me and I'm one stumped mofo....





thanks in advance....
__________________
Investor with 5m - 15m USD to invest. Do you have a site or network of sites earning 50k - 200k a month income? Email your contact and preliminary data to: domain.cashventures (at) gmail.com....Please...no tire kickers...serious offers and inquiries only.
TheJimmy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-16-2004, 06:56 PM   #2
hudson
Confirmed User
 
Join Date: Jul 2003
Location: Grand Central
Posts: 2,948
RewriteEngine on
Options +FollowSymlinks
RewriteBase /
RewriteRule ^\tata.html$ /file.html

OK, on the RewriteBase part, you got to put your subdirectory
RewriteBase /sub1/

Then

RewriteRule ^tata.html$ file.html

should work...but I would have to test it...you just want to rewrite tata.html to file.html, correct?
hudson is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-16-2004, 07:17 PM   #3
Wiz
Confirmed User
 
Join Date: Dec 2002
Location: x
Posts: 223
Not sure but ...

RewriteEngine on
Options +FollowSymlinks
RewriteBase /
RewriteRule ^(.*)\.html$ file.html

If you want the wildcard before the .html part ;)
__________________
!
Wiz is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-16-2004, 07:26 PM   #4
hudson
Confirmed User
 
Join Date: Jul 2003
Location: Grand Central
Posts: 2,948
Quote:
Originally posted by Wiz
Not sure but ...

RewriteEngine on
Options +FollowSymlinks
RewriteBase /
RewriteRule ^(.*)\.html$ file.html

If you want the wildcard before the .html part ;)
that would make any html file rewrite to file.html
hudson is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-16-2004, 07:26 PM   #5
Wiz
Confirmed User
 
Join Date: Dec 2002
Location: x
Posts: 223
Thats what the guy asked it seem .. hehe
__________________
!
Wiz is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-16-2004, 07:54 PM   #6
DerekT
Confirmed User
 
Join Date: Jun 2001
Location: Apple Valley, MN
Posts: 112
Try this:

RewriteEngine On
Options -indexes
RewriteRule ^(.*).html$ /DIRECTORY/$1.html [L]

Replace DIRECTORY with a sub. If you do this:
RewriteRule ^(.*).html$ /$1.html [L]
It would create a loop and fail.

Or for a dynamic solution:
RewriteRule ^(.*).html$ /view.php?cat=$1 [L]

Creating a file called view.php to accept variables would then do this:
/free-sex-pics.html would translate to /view.php?cat=free-sex-pics

You could then have the view.php create a page with titles, alt tags, headers, etc for search engines.

Hope it helps.
DerekT is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-16-2004, 07:55 PM   #7
DerekT
Confirmed User
 
Join Date: Jun 2001
Location: Apple Valley, MN
Posts: 112
http://httpd.apache.org/docs/mod/mod_rewrite.html

Here is another good page, but a long read.
DerekT is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-16-2004, 08:04 PM   #8
Wiz
Confirmed User
 
Join Date: Dec 2002
Location: x
Posts: 223
DerekT , thanks for the php part and variable ;)
__________________
!
Wiz is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-16-2004, 08:09 PM   #9
DerekT
Confirmed User
 
Join Date: Jun 2001
Location: Apple Valley, MN
Posts: 112
No problem. I had a project a while back to create a totaly dynamic sex toy store. I took their entire spread sheet, imported it to MySQL, create custom php, download all the images and thumbnails. Walah, a toy store, with search engine friendly pages numbering over 15,000 products. The sweetness of it is when there are changes in the search engines, I can tweak just two files and all the products are updated to rank better.
DerekT is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-16-2004, 08:29 PM   #10
Wiz
Confirmed User
 
Join Date: Dec 2002
Location: x
Posts: 223
yup the best way ;)
__________________
!
Wiz 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.