GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   .htaccess question (https://gfy.com/showthread.php?t=797443)

jOE :D 01-05-2008 10:39 PM

.htaccess question
 
I'm trying to rewrite some URL's.

I use this and it works fine:
RewriteRule ^page/(.+)$ index$1.php [nc]

But when I try to use this, it says page not found:
RewriteRule ^page/1$ index.php [nc]

Anyone know what I'm doing wrong?

Malicious Biz 01-05-2008 11:02 PM

Bump:thumbsup

jOE :D 01-05-2008 11:29 PM

bump for help!

vending_machine 01-05-2008 11:32 PM

What are you trying to accomplish?

Quote:

RewriteRule ^page/1$ index.php [nc]
That will rewrite all reqests from http://yoursite.com/path/page/1 , to http://yoursite.com/path/page/index.php .

pip 01-05-2008 11:44 PM

Ya what are you trying to do?

woj 01-05-2008 11:45 PM

you need "RewriteEngine On"
you obviously have that?

yahoo-xxx-girls.com 01-05-2008 11:49 PM

Here you go jOE :D ...

http://www.webweaver.nu/html-tips/web-redirection.shtml

Later,

.

jOE :D 01-06-2008 12:01 AM

Problem fixed!

Steve Awesome 01-06-2008 09:56 AM

mod_rewrite is a great way to take ugly URLs and turn them into SE optimized friendly URLs. Good to see a thread like this on here.

VicD 01-06-2008 10:02 AM

Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://xxxxxxxxx.com/$1 [R=301,L]

i use this, works perfect


All times are GMT -7. The time now is 07:56 AM.

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