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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T02:44:12+00:00 2026-06-08T02:44:12+00:00

In my httpd.conf file of my apache server(on windows7), I used LoadModule alias_module modules/mod_alias.so

  • 0

In my httpd.conf file of my apache server(on windows7), I used LoadModule alias_module modules/mod_alias.so
And then I modified the httpd.conf with the following:

<IfModule alias_module>
    Alias /b /blog
    ScriptAlias /cgi-bin/ “cgi-bin/”
</IfModule>

After I restarted the server and type the localhost/b in my address bar,however,it did not redirect to the localhost/blog.I don’t konw why.Can you help me, Any help is greatly appreciated

  • 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-08T02:44:13+00:00Added an answer on June 8, 2026 at 2:44 am

    Alias declarations aren’t the same as redirects.

    Alias /b /blog
    

    tells Apache to make the files that exist on your file system under the path /blog (which doesn’t mean much on Windows) available at the URL http://myserver.com/b, i.e. a request for http://myserver.com/b/something.html will try to return the content of the file /blog/something.html from your filesystem, failing if that file does not exist – the browser address bar will still say http://myserver.com/b/something.html.

    It sounds like what you’re after is

    Redirect /b http://myserver.com/blog
    

    In this case, a request for http://myserver.com/b/something.html will result in an HTTP redirect, the browser’s address bar will change to say http://myserver.com/blog/something.html.

    Of course, you then need to ensure that /blog resolves appropriately, which may require its own Alias if it’s not under the DocumentRoot.

    Alias /blog "C:/web/blog"
    <Directory "C:/web/blog">
      Order allow,deny
      Allow from all
    </Directory>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm porting over a Windows httpd.conf file to a linux apache server. I'm pretty
I edited the apache httpd.conf file recently for the mod_rewrite to work. I don't
I've implemented a PHP auto_prepend_file in Apache's httpd.conf file to password protect every page
I'm trying to edit the httpd.conf file located in /private/etc/apache2, and I can't figure
In the httpd.conf file I have AllowOverride FileInfo . In the .htaccess file in
I'm trying to share a single httpd.conf file across multiple OS X machines. I'm
I want to open the httpd.conf file and change the LogFormat line with the
My httpd-vhosts.conf file looks something like this. I am trying to create 2 virtual
I'm using Wamp 2.2, edited conf/extra/httpd-vhosts.conf edited this file to add VirtualHosts , but
I'm using OS X Lion's built-in Apache server. I placed a .htaccess file in

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.