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

  • Home
  • SEARCH
  • 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 6639175
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T23:31:24+00:00 2026-05-25T23:31:24+00:00

On my computer I have an Apache server with rewrite and userdir modules enabled.

  • 0

On my computer I have an Apache server with rewrite and userdir modules enabled.

The website is located in /home/pedro/Dropbox/www/cocina/ and the webserver root is /home/pedro/Dropbox/www/

If go to http://localhost/~pedro/cocina/index.php the website shows ok.

In my .htaccess I have the following:

RewriteEngine On
RewriteBase /~pedro/cocina/
RewriteRule ^receta/([^/]*)/([^/]*)\.html$ /index.php?receta=$1&desc=$2 [L,PT]

But when I try to open http://localhost/~pedro/cocina/receta/1234/blabla.html I get a 404 error (index.php not found).

Looking at mod-rewrite logs I can’t see any problem:

rewrite 'receta/1234/blabla.html' -> '/index.php?receta=1234&desc=blabla'
forcing '/index.php' to get passed through to next API URI-to-filename handler
trying to replace prefix /home/pedro/Dropbox/www/cocina/ with /~pedro/cocina/
internal redirect with /index.php [INTERNAL REDIRECT]

Where’s the problem?

note: If I set up a v-host instead of using userdirs, the redirect works fine.

  • 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-25T23:31:24+00:00Added an answer on May 25, 2026 at 11:31 pm

    try using this:

    RewriteRule ^receta/([^/]*)/([^/]*)\.html$  index.php?receta=$1&desc=$2 [L,PT]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an Apache server running on a client's computer, with PHP installed. I
I have an apache web server running on my ubuntu server box. Recently, I
I have a web-site in the directory d:\www\mysite on my local computer. I installed
I have one problem. I have EasyPHP server on my local computer. I am
I have a server that i am hosting on another computer with axis2 and
I have installed Apache 2.2 (and PHP/MySQL) on my personal computer so I can
I have a localhost Apache/PHP configuration on my computer. I want to be able
can an x64 computer have both the x86 and x64 .net runtime installed? If
i have installed SharePoint 2007 and VS2008 extension on my computer.i have created a
I noticed that every time that I restart my computer I have to do

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.