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 6852259
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:20:58+00:00 2026-05-27T01:20:58+00:00

I have the following rewrite (trimmed it down for posting purposes). How can I

  • 0

I have the following rewrite (trimmed it down for posting purposes). How can I target the directory above (../, or for search engines dot dot slash)? I tried escaping the periods \ . (without the space, Stackoverflow doesn’t like it apparently) though I’m still getting an HTTP 404 error. I’m sure this is simple though I haven’t found anything online yet where someone got a working answer.

RewriteEngine on
RewriteRule ^(path1\/|path2\/) - [L]
RewriteRule !\.(css|cur|gif|gz|xhtml)$ index.php

EDIT
This works on ONLY the directory, how can we adjust it so that it applies to all the files in directory as well?

RewriteRule .*\/scripts\/*$ scripts\/$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-27T01:20:59+00:00Added an answer on May 27, 2026 at 1:20 am
    RewriteEngine on
    RewriteRule .*\/scripts(.+) scripts$1 [QSA] 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have following url http://domain/phpfile.php/something1-param1/something2-param2/somethin3-param3 Can i rewrite it with htaccess to http://domain/phpfile.php?something1=param1&something2=para2&something3=param3 also
I've got the following directory: http://www.mydomain.com/issues/issue-04/ And I have the following mod rewrite in
I have the following rewrite rules: RewriteRule ^products/([a-zA-Z]+)$ /project/clients/index.php?database=$1&module=products [L,QSA] The directory structure is:
I have following rewrite rule in web.config: <rewrite> <rules> <rule name=Search stopProcessing=true> <match url=^search/(.+)$
I have the following rewrite rule that I need to alter in order to
I have the following rewrite rule rewrite ^/ab(.*)/(.*)$ /repo/ab$1/rtest/$2 break; When the request file
I have the following rewrite set up: RewriteRule r/(.*) scripts/report.php?cp=1&id=$1 It works great to
I currently have the following htaccess rewrite rule: RewriteRule (.*) index.php/$1 [L] How do
I have following LINQ statement and I want to rewrite it using extension methods.
I have following div in a page (I can not modify). <div id=:0.control>Click me</div>

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.