Forum Moderators: phranque

Message Too Old, No Replies

Proplem 2 Slash at site

         

aloaax

2:00 am on Apr 2, 2011 (gmt 0)

10+ Year Member



Hello

please i need help to edite my .htaccess file


i have 2 slash (//) at my website With script FMyScript

www.a7ab2a.com

[a7ab2a.com...]

i wanna to make only one slash

[a7ab2a.com...]

that's it

RewriteEngine on
Options -MultiViews FollowSymLinks
RewriteBase /
RewriteCond %{HTTP_HOST} !^www\.a7ab2a\.com$ [NC]
RewriteRule ^/(.*)$ http://www.a7ab2a.com$1 [R=301,L]
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
</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>

jdMorgan

2:16 am on Apr 6, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Delete the first RewriteCond. it is not needed for this application. In fact, it defeats (disables) the rule you added to fix the double-slashes.

Jim