rewrite rules

2012-02-25  Source: Original Site  Category:Other  Views:0 


I am running into an issue with the rewrite rule for a sitemap file.

I am using the following:

RewriteRule ^sitemapindex.xml module.php?module=xml_sitemaps_show_sitemap [L]
RewriteRule ^sitemap-([0-9a-z]+).xml module.php?module=xml_sitemaps_show_sitemap&i=$1 [L]

The sitemapeindex.xml displays correctly; however, the sitemap-*.xml file will not load. It just shows the custom error page.

If i use the following full path, then it will work:


Any ideas? I am new to this and am not sure if I even provided enough information.

Any guidance will be appreciated.

Related articles
  • rewrite rules 2012-02-25

    I am running into an issue with the rewrite rule for a sitemap file. I am using the following: RewriteRule ^sitemapindex.xml module.php?module=xml_sitemaps_show_sitemap [L] RewriteRule ^sitemap-([0-9a-z]+).xml module.php?module=xml_sitemaps_show_site

  • Need help with .htaccess rewrite rule 2012-05-19

    webdeveloper friends, I need help with rewrite rule as my website looks not SE friendly now. It is all dynamic URLs and I am unable to figure out how to rewrite it properly. This is my website The links for the brands look like: htt

  • Rewrite Rule for redirecting 2012-08-08

    How to redirect any variable(string) to another from First when user enter user can view this website After loading If user type in address bar "http://popcorn" "http://go"

  • Rewrite rule - complete noob - help please :) 2013-01-07

    Ok, so I never wrote a rewrite rule in my life. I know they use pattern matching but have no idea of their syntax. All I know (although I'm not so sure about it) is that you put rewrite rules in a file you call .htaccess and place that in the folder

  • Multiple rewrite rules within .htaccess 2013-02-15

    RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule ^(.*)$ /products.php?brandid=27&pname=$1 [NC] The above works only for branid=27 and If I include mutilple statements, LIKE RewriteCond %{REQUEST_FILENAME} !-fRewri

  • Ubuntu Apache 2 rewrite rule 2013-04-08

    So I've been playing around with rewrite rules and I cannot get it to work for what I'm trying to do. I want it so that when someone goes to it redirects it to /cgi-bin/HWM/somefile.cgi Here's the config for my virtual ho

  • Need help with rewrite rule 2013-04-20

    I hosted my site on Apache web server. I wanted to redirect all the users request to a HTML page(maintenance page). I used the below rewrite rule to do ths same. RewriteEngine on RewriteRule .* /maintenance.html The maintenance.html page contains an

  • Modifying a rewrite rule in nginx for subdomain 2013-06-16

    Hello, I did a little rewrite rule a little while ago to redirect ppl who directly access my site's image to image pages instead, for example a person accessing HTTP/1.1 200 OK Cache-Control: no-cache Pragma: no-cache Content-Type: text/html; charset

  • Rewrite rule, need some help. 2013-06-18

    So far I have: Options +FollowSymLinks RewriteEngine on RewriteRule \.(gif|png|jpg|css|js)$|^index\.php$ - [L] RewriteRule ^quests/(.*)/(.*)$ quests.php?flibble=questview&id=$2&ic=1 RewriteRule ^(.*)$ index.php?page=$1 What I'm trying to do i

  • Stumped on simple .htaccess rewrite rules to Lighttpd version 2013-07-31

    Looking for a small favour, since I can't seem to figure it out... Here are my current Rewrite Rules with Apache. I'm moved to Lighttpd, and need to change these so that my vanity URLs continue to work: RewriteEngine on RewriteRule ^([a-zA-Z0-9]+)$ /

  • Nginx rewrite rules 2013-09-15

    Can someone please explain to me, or point me to a good resource to learn, how to write Nginx rewrite rules. I've read the official docs and looked all over online. There are lots of examples but nothing explains what everything means. I want to get

  • (Basic) Joining rewrite rule in htaccess 2013-10-04

    I have these rewrite rules RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !(file1.php) RewriteCond %{REQUEST_URI} !(file2.php) RewriteCond %{REQUEST_URI} !(file3.php) RewriteRule ^/?(af|sq|ar)/([^/]

  • Complex Rewrite Rule in .htaccess 2013-11-09

    Ok, I just got another challenge which I tried to work out myself, but failed... I have this link: I was going to take images/portfolio/imagethumb.php?= and put it into a rewr

  • Ubuntu rewrite rule and& 2013-12-19

    hello how can i use rewrite rule for &amp in this url,i need both id number and ADD as mentioned in user.php below url: ( ( user.php related code

  • Nginx rewrite rules for phpmyadmin help 2014-01-02

    I'm having difficulty creating rewrite rules for phpmyadmin in Nginx. I have created a symbolic link using ln -s /usr/share/phpmyadmin /home/tony/public_html/ to link phpmyadmin to my site. However I get 404 error. I guess there's

  • SEO/user friendly URL rewrite rules - what am I overlooking? 2014-02-15

    I know that Apache rewrite rules are not considered to be very newbie-friendly, but for some reason I keep struggling with them forever. This time I'm trying to do something that I know is rather simple but I can't get it to work and I just don't see

  • sendmail address rewrite rule 2014-02-22

    I need to create a rewrite rule on the relay host running senmdmail such that [email protected] gets rewritten to [email protected] Which Ruleset in the should I edit? Here is what I tried in Ruleset 3 but it didnt work R$+ @ $*.

  • Apache ReWrite rule for HTTPS to HTTPS subdomains 2014-05-16

    I have a client who has a site set up, let's say, which is all behind https. It's essentially an application that's for their clients behind a paywall. They have another site which is just their general public

  • convert apache rewrite rules to nginx 2014-05-17

    i am trying to covert some apache rewrite rules to nginx which i just currently switched over to. These are the rules (They are for a gallery 2 installation) That has my config file and the rewrite

  • Ubuntu vhost .htaccess rewrite rule precedence 2014-05-18

    I have a server up with two ssl enabled sites I've declared each vhost in my default-ssl file as follows: NameVirtualHost NameVirtualHost <VirtualHost> ServerName (h