RE: help with rewrites - changing the base path

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks Chris, 
I will give this a shot. I wouldn't have discoveretd this in the docs.
Does this require that the directory /technology-blog be present, or is it a
cosmetic change only?


Chris Evens wrote:
> 
> Matthew 
> Is this more like a directory name change if so all you need is
> 
> RewriteRule ^/techblog(.*)$  /technology-blog$1 [R=301,L]
> 
> R is the browser return code and also forces the users browser to refresh.
> It
> is also possible to make this transfer internally without a response to
> the
> users browser but sending the return code does tell the browser to update
> its
> bookmarks.
> 
> Christopher Evens
> Web Programmer, Christian Record Services for the Blind
> Free lending library for the blind
> www.christianrecord.org
> 
> 
> 
> -----Original Message-----
> From: Matthew Sacks [mailto:ntwrkd@xxxxxxxxx] 
> Sent: Monday, December 15, 2008 4:54 PM
> To: users@xxxxxxxxxxxxxxxx
> Subject: help with rewrites - changing the base path
> 
> i am trying to change the base path of a directory to rewrite to a new
> location, there are no files in the location, so it is just a
> cosmetic/seo change.
> 
> i have some rewrites that are put in place by my hosting provider, and
> im having some difficulty getting the rewrite to work:
> 
> 
> here is my .htaccess file:
> 
> # BEGIN WordPress
> <IfModule mod_rewrite.c>
> RewriteEngine On
> 
> RewriteBase /techblog/
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteCond %{REQUEST_FILENAME} !-d
> #RewriteRule   ^/techblog  /technology-blog [L]
> RewriteRule . /techblog/index.php [L]
> 
> 
> </IfModule>
> 
> # END WordPress
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/help-with-rewrites---changing-the-base-path-tp21023859p21060112.html
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux