Forum Moderators: phranque
im having a problem configuring a mod_rewrite for the cms that im woking on. its a database driven cms but has a defined folderpath in the url e.g. http://www.example.com/web/one/two/three
ive been looking at the redirect from the php point of view but as with the nature of mod_rewrite it is hard to understand for the newcomer and im a total newcomer in mod_rewrite i cant use the .htacess solution as there is no specific folders to place them in. I have access to edit the httpd.conf but im going quite crazy with this.
Essentially i want to a site wide rewrite from
http://www.example.com/web/one/two/three to
http://www.example.com/web/three
I dont have access to modify the source code for the cms as its third party software.
Any help would be greatly appreciated
We need to know what your goal is here, as stated from the viewpoint of search results listings or the URL that the user sees in his/her address bar, and compared/contrasted with the actual filepaths inside your server.
Otherwise, it's likely we will guess wrong, and start discussing the right solution to the wrong problem.
From a search results URL or user viewpoint, what are you trying to accomplish?
Jim
I would normally create server redirects within the httpd but there is over 300 smaller individual websites runnign on the server and that would take forever and isnt manageable going forward
ive tried using the code below
RewriteRule ^/Test(.*)$ /web/Idea/for/Test$1
but im not getting any joy at all.
hope this helps a bit more
ideally i would like to have a google friendly url like
www2backup.ul.ie/web/Training
there are no filepaths per say as the folders themselves are generated by the cms application itself to allow for lots of different websites that need to follow an information hierarchy
its on a backup system at the moment as i cant go taking down the live system unless I can show that this works outright
This may not be what you'd hoped for, but URLs are defined by the links on your pages, while the server defines only filepaths. So the links on your pages must be changed.
In this case, the 'filepaths' are virtual filepaths, implemented 'through' the physical filepath to your CMS, and any query strings or Path_Info that it may require.
Jim