Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4108366
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T21:38:40+00:00 2026-05-20T21:38:40+00:00

Can anybody help me optimize and fix my .htaccess file? I’m really bad at

  • 0

Can anybody help me optimize and fix my .htaccess file? I’m really bad at regex and I’m not a server person and site I’m building is inaccessible because of the error. Any help would be very much appreciated.

SetEnv  _SRVR_ENV   beta

Options +FollowSymLinks

RewriteEngine On
RewriteBase /

## Paypal Callback Rules
RewriteCond %{QUERY_STRING} token=(\w+-\w+)&PayerID=(\w+)
RewriteRule ^some-seo-text-(\w+)-(\w+)\.html                                /index.php?c=$1&m=$2&token=%1&payerid=%2 [L]

RewriteCond %{QUERY_STRING} token=(\w+-\w+)
RewriteRule ^some-seo-text-(\w+)-(\w+)-(\w+)\.html                          /index.php?c=$1&m=$2&token=%3 [L]

RewriteCond %{QUERY_STRING} token=(\w+-\w+)
RewriteRule ^some-seo-text-(\w+)-(\w+)\.html                                /index.php?c=$1&m=$2&token=%1 [L]

RewriteCond %{QUERY_STRING} session=(.*) 
RewriteRule ^some-seo-text-(\w+)-(\w+)\.html                                /index.php?c=$1&m=$2&session=%1 [L]

## Custom Rules
RewriteRule ^some-seo-text-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)\.html$   /index.php?c=$1&m=$2&v1=$4&v2=$6&v3=$8 [L]
RewriteRule ^some-seo-text-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)\.html$             /index.php?c=$1&m=$2&v1=$4&v2=$6 [L]
RewriteRule ^some-seo-text-(.*)-(.*)-(.*)-(.*)\.html$                       /index.php?c=$1&m=$2&v1=$4 [L]
RewriteRule ^some-seo-text-(.*)-(.*)\.html$                                 /index.php?c=$1&m=$2 [L]
RewriteRule ^some-seo-text-(.*)-(.*)\.html$                                 /index.php?c=$1&m=$2 [L]
RewriteRule ^some-seo-text-(.*)\.html$                                      /index.php?c=$1 [L]

## Directory Cloaking
RewriteRule ^images/another-seo-text-(.*)$                                  /static/images/$1 [L]
RewriteRule ^deals/another-seo-text-(.*)$                                   /static/images/campaigns/$1 [L]
RewriteRule ^css/(.*)$                                                      /static/stylesheets/$1 [L]
RewriteRule ^js/(.*)$                                                       /static/javascripts/$1 [L]
RewriteRule ^captcha/(.*)$                                                  /static/captcha/$1 [L]
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T21:38:41+00:00Added an answer on May 20, 2026 at 9:38 pm

    Note that (.*) will happily match a - in an URL, making many of these matches ambiguous, and perhaps very slow. Your \w matches probably make more sense.

    Can you paste the diff(1) between your last known good working .htaccess and this one? That would help you find the fault quickly.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can anybody help me to fix this code, I really need it, but have
Can anybody help with converting an SDL_Surface object, a texture loaded from a file,
Can anybody help with a valid regex ? I have a files containing functions
can anybody help me to call a server side javascript method from the client
Can anybody help me out, while my solution does not seem to work: $this->db->where('stock
Can anybody help me for a deadlock in SQL Server 2005? For a simple
Can anybody help me to get the file size before I start downloading display
Can anybody help me with a regex? I have a string with digits like:
Can anybody help with this , I have cloned a production site to my
Can anybody help with this task? I am not a javascript guru and got

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.