Forum Moderators: phranque

Message Too Old, No Replies

problem with .htaccess

please help me

         

aloaax

1:02 pm on Mar 1, 2011 (gmt 0)

10+ Year Member



please eny on help me to finish it

aloaax

1:03 pm on Mar 1, 2011 (gmt 0)

10+ Year Member




i have proplem for open eny thing at On FMyScript

that's the Website :www.a7ab2a.com/fmy

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^signup$ /signup.php
RewriteRule ^account$ /account.php
RewriteRule ^logout$ /logout.php
RewriteRule ^login$ /login.php
RewriteRule ^view/(.*)/(.*) /view.php?cat=$1&pid=$2
RewriteRule ^category/(.*)/(.*) /category.php?cat=$1&name=$2
RewriteRule ^top$ /top.php
RewriteRule ^flop$ /flop.php
RewriteRule ^random$ /random.php
RewriteRule ^password$ /password.php
RewriteRule ^confirmemail/(.*) /confirmemail.php?code=$1
RewriteRule ^resetpassword/(.*) /resetpassword.php?code=$1
RewriteRule ^editaccount$ /editaccount.php
RewriteRule ^changeemail$ /changeemail.php
RewriteRule ^changepass$ /changepass.php
RewriteRule ^resendconfirmation/(.*) /resendconfirmation.php?userid=$1
RewriteRule ^favorites$ /favorites.php
RewriteRule ^members/(.*)/(.*) /memberprofile.php?pid=$1&name=$2
RewriteRule ^advanced_search$ /advanced_search.php
RewriteRule ^moderate$ /moderate.php
RewriteRule ^termsofuse$ /termsofuse.php
RewriteRule ^privacypolicy$ /privacypolicy.php
RewriteRule ^aboutus$ /aboutus.php
RewriteRule ^advertising$ /advertising.php
RewriteRule ^contactus$ /contactus.php
RewriteRule ^mailbox$ /mailbox.php
RewriteRule ^log_out$ /log_out.php
RewriteRule ^man$ /man.php
RewriteRule ^woman$ /woman.php
</IfModule>

<IfModule mod_security.c>
# Turn off mod_security filtering.
SecFilterEngine Off

# The below probably isn't needed,
# but better safe than sorry.
SecFilterScanPOST Off
</IfModule>

g1smd

1:38 pm on Mar 1, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



The following code will run hundreds of times quicker:

RewriteEngine On
RewriteRule ^(signup|(edit)?account|log(_?out|in)|(t|fl)op|random|passwo
rd|change(email|pass)|favorites|adv(anced_search|ertising)|moderate|term
sofuse|privacypolicy|aboutus|contactus|mailbox|(wo)?man) /$1.php [L]
RewriteRule ^view/([^/]+)/(.*) /view.php?cat=$1&pid=$2 [L]
RewriteRule ^category/([^/]+)/(.*) /category.php?cat=$1&name=$2 [L]
RewriteRule ^(confirmemail|resetpassword)/(.*) /$1.php?code=$2 [L]
RewriteRule ^resendconfirmation/(.*) /resendconfirmation.php?userid=$1 [L]
RewriteRule ^members/([^/]+)/(.*) /memberprofile.php?pid=$1&name=$2 [L]


Every change has a good reason. Ask questions about any specific changes that you do not understand.

aloaax

1:05 am on Mar 3, 2011 (gmt 0)

10+ Year Member



i don't under stand u please make the file for me

g1smd

1:09 am on Mar 3, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Err, I just did.

Maybe webmastering isn't your destiny.

aloaax

1:12 am on Mar 3, 2011 (gmt 0)

10+ Year Member



iam at 1and1 hosting but realy i don't understand how i can do it

i copied ur cod but this give me err 500

g1smd

1:34 am on Mar 3, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



You did take out the two extra CR/LF characters that were added to stop the forum post ending up several miles wide?

aloaax

11:56 pm on Mar 4, 2011 (gmt 0)

10+ Year Member



i don't understand that iam not prof at .htcss

wilderness

12:09 am on Mar 5, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



CR/LF or Carriage Return Line Feed.

In html also designated as <br>

aloaax

12:15 am on Mar 5, 2011 (gmt 0)

10+ Year Member



please guy's eny one help me edit it and give me the final to copy it at this file .htcss if support with monny no proplem with me but realy i'am now angry from this file

g1smd

12:40 am on Mar 5, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



With the CR/LF removed:

RewriteEngine On
RewriteRule ^(signup|(edit)?account|log(_?out|in)|(t|fl)op|random|password|change(email|pass)|favorites|adv(anced_search|ertising)|moderate|termsofuse|privacypolicy|aboutus|contactus|mailbox|(wo)?man) /$1.php [L]
RewriteRule ^view/([^/]+)/(.*) /view.php?cat=$1&pid=$2 [L]
RewriteRule ^category/([^/]+)/(.*) /category.php?cat=$1&name=$2 [L]
RewriteRule ^(confirmemail|resetpassword)/(.*) /$1.php?code=$2 [L]
RewriteRule ^resendconfirmation/(.*) /resendconfirmation.php?userid=$1 [L]
RewriteRule ^members/([^/]+)/(.*) /memberprofile.php?pid=$1&name=$2 [L]

aloaax

1:28 am on Mar 5, 2011 (gmt 0)

10+ Year Member



please open ur Skype G1smd

aloaax

2:45 am on Mar 5, 2011 (gmt 0)

10+ Year Member



i did somthing and now

[a7ab2a.com...] wotking fine

but at script

[a7ab2a.com...]

2 slashes how i can remove one from that

www.a7ab2a.com