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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T19:43:10+00:00 2026-06-13T19:43:10+00:00

I am using a MVC and on my application file, I am routing this

  • 0

I am using a MVC and on my application file, I am routing this way :

# Routing
$routing = array(
    '([a-zA-Z]+)\/?'    =>  array('Post', 'view')
);
framework::routing($routing);

It means that all the URLs like “mysite.com/anything/” will be routed to the same template but with different content. Until then, everything is okay.

My problem is that I would like to make an exception for that,

because I want to access my page “mysite.com/uploads” directly into the browser, but I am redirected, due to the routing php stuff.

Is there a way to make an exception to this routing? Like route all names excepted “upload” ?

I can submit the routing file, but since it’s almost the same than codeigniter maybe you won’t need it really.

Thanks

  • 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-06-13T19:43:11+00:00Added an answer on June 13, 2026 at 7:43 pm

    Seeing that your urls don’t contain the index.php part anymore, I guess that you added an .htaccess file to do that, probably one that looks like this (straight from the codeigniter docs):

    RewriteEngine on
    RewriteCond $1 !^(index\.php|images|robots\.txt)
    RewriteRule ^(.*)$ /index.php/$1 [L]
    

    If this is that case and the uploads folder is in the same folder as the root index.php file of codeigniter, you should change the second line to:

    RewriteCond $1 !^(index\.php|images|uploads|robots\.txt)
    

    But this all depends on your specific configuration.

    EDIT: Altough it seems that you aren’t using CodeIgniter, the same applies to Zend Framework MVC. You should make an exception to the rewrite rules to allow direct access to your upload directory.

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

Sidebar

Related Questions

Solved using this post: Can you convert an ASP.NET MVC Application to a Web
I have a working zend mvc application that is using a layout, and this
I am uploading a file in my ASP.NET MVC application using Uploadify. Controller: public
I am using a custom MVC application that has dependencies on SPring Batch as
I have an ASP.NET MVC application using Authorization Attributes on Controllers and Actions. This
I have a PHP MVC application using Zend Framework. As presented in the quickstart,
I have a asp.net web application using MVC framework, the website allows the registrars
I am working on an MVC application using Entity Framework. After creating an EDMX,
We have an existing MVC application that we're building using TeamCity and things were
I have an ASP.NET MVC application that allows the user to upload a file

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.