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 12-18-2008, 08:26 PM   #1
spacedog
Yes that IS me. Bitch.
 
Industry Role:
Join Date: Nov 2001
Posts: 14,149
anyone here expert at rewrite for .htaccess with dynamic urls

I need help with dynamic url rewrite in .htaccess..

I give free blog post on pr 2 videos/movies blog if you make my problem go away.

348-132-803 <<<
spacedog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-18-2008, 08:27 PM   #2
CS-Jay
Confirmed User
 
CS-Jay's Avatar
 
Join Date: Oct 2003
Location: Command Central, West Palm Beach, Fl
Posts: 1,794
I'm not a huge expert but I've done all my sites. I could help if you like to hit me up
__________________
I do stuff - aIm CS_Jay_D
CS-Jay is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-18-2008, 09:04 PM   #3
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,214
post the question here, you will get more help that way
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-18-2008, 09:06 PM   #4
Tube Ace
So Fucking Banned
 
Industry Role:
Join Date: Nov 2008
Location: with your dream girl
Posts: 4,941
post what you need here and I can help.
Tube Ace is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-18-2008, 09:08 PM   #5
spacedog
Yes that IS me. Bitch.
 
Industry Role:
Join Date: Nov 2001
Posts: 14,149
I have this in .htaccess

PHP Code:
Options +FollowSymLinks
RewriteEngine on
RewriteCond 
%{HTTP_HOST} !^www\.domain\.com
RewriteRule 
(.*) http://www.domain.com/$1 [R=301,L]
RewriteRule ^index.php?page=([0-9]+)&cat=([0-9]+)$  index.php?page=$1&cat=$[L]
RewriteCond %{QUERY_STRING} .  
RewriteRule ^/?$ http://mysponsors404page.com [L] 

Now.. my site dynamically generates archives as more galleries are added, and so have

domain.com
domain.com/index.php?page=1
domain.com/index.php?page=2 and so on as many pages as I have..

Problem I have though is when someone types in query such as domain.com?anything it still shows index and I want it to go to 404, which the above .htaccess solved when I added it, however..

when it is domain.com/index.php?anything it does not 404 and the last thing is about pages that have yet to be created and do not exist yet..so, how would I make page=18 404 if I only have say 15 pages?

Last edited by spacedog; 12-18-2008 at 09:10 PM..
spacedog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-18-2008, 09:11 PM   #6
Ivan Fuckalot
Confirmed User
 
Ivan Fuckalot's Avatar
 
Join Date: Jun 2007
Posts: 825
you can donate me $5
http://www.htaccesstools.com
__________________
http://www.pantyhoseone.com
Ivan Fuckalot is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-18-2008, 09:25 PM   #7
spacedog
Yes that IS me. Bitch.
 
Industry Role:
Join Date: Nov 2001
Posts: 14,149
Quote:
Originally Posted by Ivan Fuckalot View Post
you can donate me $5
http://www.htaccesstools.com
answer not there.. no $5 for you
spacedog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-18-2008, 09:38 PM   #8
spacedog
Yes that IS me. Bitch.
 
Industry Role:
Join Date: Nov 2001
Posts: 14,149
this one's in regards to blogs..

.htaccess has;

PHP Code:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase 
/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond 
%{REQUEST_FILENAME} !-d
RewriteRule 
^(.+)$ /index.php/$[L]
</
IfModule>

# END WordPress
<Files .htaccess>
order allow,deny
deny from all
</Files>
RewriteCond %{HTTP_HOST} !^www\.blog\.net
RewriteRule 
(.*) http://www.blog.net/$1 [R=301,L]
RewriteCond %{QUERY_STRING} .   
RewriteRule ^/?$ http://www.404page.com [L] 
So, when user types blog.net?whatever it goes 404 to external 404 page....

yet, when user types blog.net/postname?whatever or blog.net/postname/?whatever or blog.net/category/postname?whatever it don't go to 404 and just shows the page????
spacedog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-18-2008, 09:47 PM   #9
spacedog
Yes that IS me. Bitch.
 
Industry Role:
Join Date: Nov 2001
Posts: 14,149
I also see that page=1 I can make into page=1&whateverifuckingwant or page=1?fuckingbitch, etc also show page=1, but I want them to go to 404.
spacedog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-18-2008, 10:19 PM   #10
spacedog
Yes that IS me. Bitch.
 
Industry Role:
Join Date: Nov 2001
Posts: 14,149
where's smokey? I bet he know's the answer
spacedog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-19-2008, 08:23 AM   #11
leek
Confirmed User
 
leek's Avatar
 
Join Date: May 2008
Location: Charlotte, NC
Posts: 342
Quote:
Originally Posted by spacedog View Post
I give free blog post on pr 2 videos/movies blog if you make my problem go away.
I'll get up with you soon on that blog post.
leek is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-19-2008, 08:45 AM   #12
Dopy
Confirmed User
 
Join Date: Feb 2001
Location: Puerto Del Carmen, Lanzarote, Canary Islands
Posts: 1,572
Quote:
Originally Posted by spacedog View Post

how would I make page=18 404 if I only have say 15 pages?

The script should handle the page out of range either by delivering page 1 or redirect 404.
Dopy 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.