Visit The New, Modern Unix Linux Community

mod_rewrite problem

Thread Tools Search this Thread
Top Forums Shell Programming and Scripting mod_rewrite problem
# 1  
mod_rewrite problem


i'm very new to mod_rewrite.

I can't seem to have this work.

I have a site which has 4 pages : home, links, adverts and contacts page.

the adverts page is linked to this url What i want is that whenever the adverts page is clicked , it will show this url in the browser

do you have the right codes for this ?

thanks for your help in advance.

Last edited by DukeNuke2; 08-28-2008 at 03:58 PM.. Reason: changed links to x...

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #819
Difficulty: Medium
In CSS, E ~ F matches an F element preceded by an E element.
True or False?

9 More Discussions You Might Find Interesting

1. Web Development

Mod_rewrite to handle paths ?

I hope someone can help. I somewhat know what a mod_rewrite does which is URL rewiring. What I don't know is how to make the mod_rewrite to handle paths ? Can this be why an AngularJS file is not being loaded ? (36 Replies)
Discussion started by: MaxtheCat
36 Replies

2. Web Development

Mod_rewrite - URL rewrite based upon HTTP_REFERER

Hello, I have added following rewrite cond and rewrite rules but it does not work. RewriteCond %{HTTP_REFERER} ^http://192\.168\.1\.150/categories/.*$ RewriteRule ^(.*)$ When I hit url : in my browser - it... (2 Replies)
Discussion started by: ashokvpp
2 Replies

3. UNIX for Advanced & Expert Users

Apache Mod_rewrite Mystery

Hi Folks, I am running on a CentOS 6.3 server, whose primary function until recently has been my Zimbra mail server exclusively. I added wordpress and I have not been disappointed, with this one exception of Apache mod_rewrite. I have already tried to set selinux to permisive to eliminate that... (5 Replies)
Discussion started by: cjm51213
5 Replies

4. Web Development

Mod_rewrite http to https

Hi Team, I have a question on the apache mod_rewrite module. I have a requirement of rewriting only specific url's to https. Requirement below:- want to match a word (test) on the url and if matches then it should rewrite to https. example:- ... (1 Reply)
Discussion started by: arumon
1 Replies

5. Web Development

Tricky mod_rewrite for clean urls problems when fetching external sources

Hi, I have problems with mod rewrite. I will try to describe... I want clean urls but fail to make it work propperly. Maybe I have problems, because the content displayed is fetched from my other site... There is a lot of stuff I already red about this, but somehow I can not find a solution... (2 Replies)
Discussion started by: lowmaster
2 Replies

6. Shell Programming and Scripting

Need help with mod_rewrite rule, redirect

I have to redirect*)/(*)-hotel-deals.html to*)/(*)-hotel-deals where of course (*) are dynamic. Any ideas how this could be accomplished? (0 Replies)
Discussion started by: EXT3FSCK
0 Replies

7. Web Development

Apache mod_rewrite: from 'friendly' url to actual path

I'd like to translate a friendly url such as: to: Seems simple enough, but I cannot figure out how. Any one done this before? (2 Replies)
Discussion started by: markericksen
2 Replies

8. Web Development

mod_rewrite help

Here's my situation. When a user access the site it redirects to /portal which displays SKIN1 by default. When a user accesses the site it displays SKIN1 by default as well. When a user access the site it... (0 Replies)
Discussion started by: Adrnalnrsh
0 Replies

9. Web Development

mod_rewrite RewriteMap - possible to 404?

In my strenuous efforts to get SEO-friendly urls, I'm using a rewrite map in my apache setup: RewriteEngine on RewriteOptions MaxRedirects=5 RewriteMap seo prg:/Applications/MAMP/htdocs/map.php #map requests for the original file to the new SEO friendly urls RewriteCond... (0 Replies)
Discussion started by: sneakyimp
0 Replies
Catalyst::Manual::Deployment::lighttpd::FastCGI(3pm)	User Contributed Perl Documentation   Catalyst::Manual::Deployment::lighttpd::FastCGI(3pm)

Catalyst::Manual::Deployment::lighttpd::FastCGI - Deploying Catalyst with lighttpd Lighttpd These configurations were tested with Lighttpd 1.4.7. Standalone server mode server.document-root = "/var/www/MyApp/root" fastcgi.server = ( "" => ( "MyApp" => ( "socket" => "/tmp/myapp.socket", "check-local" => "disable" ) ) ) Static mode server.document-root = "/var/www/MyApp/root" fastcgi.server = ( "" => ( "MyApp" => ( "socket" => "/tmp/myapp.socket", "check-local" => "disable", "bin-path" => "/var/www/MyApp/script/", "min-procs" => 2, "max-procs" => 5, "idle-timeout" => 20 ) ) ) Note that in newer versions of lighttpd, the min-procs and idle-timeout values are disabled. The above example would start 5 processes. Non-root configuration You can also run your application at any non-root location with either of the above modes. Note the required mod_rewrite rule. url.rewrite = ( "myapp$" => "myapp/" ) fastcgi.server = ( "/myapp" => ( "MyApp" => ( # same as above ) ) ) For more information on using FastCGI under Lighttpd, visit <> Static file handling Static files can be served directly by lighttpd for a performance boost. $HTTP["url"] !~ "^/(?:img/|static/|css/|favicon.ico$)" { fastcgi.server = ( "" => ( "MyApp" => ( "socket" => "/tmp/myapp.socket", "check-local" => "disable", ) ) ) } This will serve everything in the "img", "static", and "css" directories statically, as well as the favicon file. AUTHORS
Catalyst Contributors, see COPYRIGHT
This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself. perl v5.14.2 2012-01-20 Catalyst::Manual::Deployment::lighttpd::FastCGI(3pm)

Featured Tech Videos