![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
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. ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
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? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
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 ;)
__________________
! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 | |
Confirmed User
Join Date: Jul 2003
Location: Grand Central
Posts: 2,948
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Join Date: Dec 2002
Location: x
Posts: 223
|
Thats what the guy asked it seem .. hehe
__________________
! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Join Date: Jun 2001
Location: Apple Valley, MN
Posts: 112
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Confirmed User
Join Date: Dec 2002
Location: x
Posts: 223
|
DerekT , thanks for the php part and variable ;)
__________________
! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
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.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
Confirmed User
Join Date: Dec 2002
Location: x
Posts: 223
|
yup the best way ;)
__________________
! |
![]() |
![]() ![]() ![]() ![]() ![]() |