![]() |
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.... |
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? |
Not sure but ...
RewriteEngine on Options +FollowSymlinks RewriteBase / RewriteRule ^(.*)\.html$ file.html If you want the wildcard before the .html part ;) |
Quote:
|
Thats what the guy asked it seem .. hehe
|
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 , thanks for the php part and variable ;)
|
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.
|
yup the best way ;)
|
All times are GMT -7. The time now is 10:39 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123